Package com.gooddata.warehouse
Class WarehouseS3Credentials
- java.lang.Object
-
- com.gooddata.warehouse.WarehouseS3Credentials
-
public class WarehouseS3Credentials extends Object
Single warehouse S3 credentials record (identified uniquely by warehouse ID, region and access key)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWarehouseS3Credentials.Links
-
Constructor Summary
Constructors Modifier Constructor Description WarehouseS3Credentials(String region, String accessKey, String secretKey)Used to add new S3 credentialsprotectedWarehouseS3Credentials(String region, String accessKey, String secretKey, org.joda.time.DateTime updated, WarehouseS3Credentials.Links links)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccessKey()StringgetInstanceUri()WarehouseS3Credentials.LinksgetLinks()StringgetListUri()StringgetRegion()StringgetSecretKey()not returned when listingorg.joda.time.DateTimegetUpdated()StringgetUpdatedByUri()StringgetUri()voidsetSecretKey(String secretKey)Sets new secret keyStringtoString()
-
-
-
Field Detail
-
URI
public static final String URI
- See Also:
- Constant Field Values
-
TEMPLATE
public static final org.springframework.web.util.UriTemplate TEMPLATE
-
-
Constructor Detail
-
WarehouseS3Credentials
public WarehouseS3Credentials(String region, String accessKey, String secretKey)
Used to add new S3 credentials- Parameters:
region- S3 regionaccessKey- S3 access keysecretKey- S3 secret key
-
WarehouseS3Credentials
protected WarehouseS3Credentials(String region, String accessKey, String secretKey, org.joda.time.DateTime updated, WarehouseS3Credentials.Links links)
-
-
Method Detail
-
getUpdated
public org.joda.time.DateTime getUpdated()
- Returns:
- the date and time of last modification
-
getSecretKey
public String getSecretKey()
not returned when listing- Returns:
- S3 secret key
-
setSecretKey
public void setSecretKey(String secretKey)
Sets new secret key- Parameters:
secretKey- secret key to set
-
getAccessKey
public String getAccessKey()
-
getRegion
public String getRegion()
-
getLinks
public WarehouseS3Credentials.Links getLinks()
-
getUri
public String getUri()
- Returns:
- URI of this resource
-
getListUri
public String getListUri()
- Returns:
- URI of the parent of warehouse S3 credentials
-
getInstanceUri
public String getInstanceUri()
- Returns:
- URI of the warehouse
-
getUpdatedByUri
public String getUpdatedByUri()
- Returns:
- URI of the user profile, who was the last to modify this resource
-
-