Class WarehouseS3Credentials


  • public class WarehouseS3Credentials
    extends Object
    Single warehouse S3 credentials record (identified uniquely by warehouse ID, region and access key)
    • Field Detail

      • 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 region
        accessKey - S3 access key
        secretKey - S3 secret key
    • 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()
      • 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