Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.storage;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
The parameters to list service SAS credentials of a specific resource.
/**
* The parameters to list service SAS credentials of a specific resource.
*/
public class ServiceSasParameters {
The canonical path to the signed resource.
/**
* The canonical path to the signed resource.
*/
@JsonProperty(value = "canonicalizedResource", required = true)
private String canonicalizedResource;
The signed services accessible with the service SAS. Possible values
include: Blob (b), Container (c), File (f), Share (s). Possible values
include: 'b', 'c', 'f', 's'.
/**
* The signed services accessible with the service SAS. Possible values
* include: Blob (b), Container (c), File (f), Share (s). Possible values
* include: 'b', 'c', 'f', 's'.
*/
@JsonProperty(value = "signedResource")
private SignedResource resource;
The signed permissions for the service SAS. Possible values include:
Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update
(u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a',
'c', 'u', 'p'.
/**
* The signed permissions for the service SAS. Possible values include:
* Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update
* (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a',
* 'c', 'u', 'p'.
*/
@JsonProperty(value = "signedPermission")
private Permissions permissions;
An IP address or a range of IP addresses from which to accept requests.
/**
* An IP address or a range of IP addresses from which to accept requests.
*/
@JsonProperty(value = "signedIp")
private String iPAddressOrRange;
The protocol permitted for a request made with the account SAS. Possible
values include: 'https,http', 'https'.
/**
* The protocol permitted for a request made with the account SAS. Possible
* values include: 'https,http', 'https'.
*/
@JsonProperty(value = "signedProtocol")
private HttpProtocol protocols;
The time at which the SAS becomes valid.
/**
* The time at which the SAS becomes valid.
*/
@JsonProperty(value = "signedStart")
private DateTime sharedAccessStartTime;
The time at which the shared access signature becomes invalid.
/**
* The time at which the shared access signature becomes invalid.
*/
@JsonProperty(value = "signedExpiry")
private DateTime sharedAccessExpiryTime;
A unique value up to 64 characters in length that correlates to an
access policy specified for the container, queue, or table.
/**
* A unique value up to 64 characters in length that correlates to an
* access policy specified for the container, queue, or table.
*/
@JsonProperty(value = "signedIdentifier")
private String identifier;
The start of partition key.
/**
* The start of partition key.
*/
@JsonProperty(value = "startPk")
private String partitionKeyStart;
The end of partition key.
/**
* The end of partition key.
*/
@JsonProperty(value = "endPk")
private String partitionKeyEnd;
The start of row key.
/**
* The start of row key.
*/
@JsonProperty(value = "startRk")
private String rowKeyStart;
The end of row key.
/**
* The end of row key.
*/
@JsonProperty(value = "endRk")
private String rowKeyEnd;
The key to sign the account SAS token with.
/**
* The key to sign the account SAS token with.
*/
@JsonProperty(value = "keyToSign")
private String keyToSign;
The response header override for cache control.
/**
* The response header override for cache control.
*/
@JsonProperty(value = "rscc")
private String cacheControl;
The response header override for content disposition.
/**
* The response header override for content disposition.
*/
@JsonProperty(value = "rscd")
private String contentDisposition;
The response header override for content encoding.
/**
* The response header override for content encoding.
*/
@JsonProperty(value = "rsce")
private String contentEncoding;
The response header override for content language.
/**
* The response header override for content language.
*/
@JsonProperty(value = "rscl")
private String contentLanguage;
The response header override for content type.
/**
* The response header override for content type.
*/
@JsonProperty(value = "rsct")
private String contentType;
Get the canonical path to the signed resource.
Returns: the canonicalizedResource value
/**
* Get the canonical path to the signed resource.
*
* @return the canonicalizedResource value
*/
public String canonicalizedResource() {
return this.canonicalizedResource;
}
Set the canonical path to the signed resource.
Params: - canonicalizedResource – the canonicalizedResource value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the canonical path to the signed resource.
*
* @param canonicalizedResource the canonicalizedResource value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withCanonicalizedResource(String canonicalizedResource) {
this.canonicalizedResource = canonicalizedResource;
return this;
}
Get the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'.
Returns: the resource value
/**
* Get the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'.
*
* @return the resource value
*/
public SignedResource resource() {
return this.resource;
}
Set the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'.
Params: - resource – the resource value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'.
*
* @param resource the resource value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withResource(SignedResource resource) {
this.resource = resource;
return this;
}
Get the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
Returns: the permissions value
/**
* Get the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
*
* @return the permissions value
*/
public Permissions permissions() {
return this.permissions;
}
Set the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
Params: - permissions – the permissions value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
*
* @param permissions the permissions value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withPermissions(Permissions permissions) {
this.permissions = permissions;
return this;
}
Get an IP address or a range of IP addresses from which to accept requests.
Returns: the iPAddressOrRange value
/**
* Get an IP address or a range of IP addresses from which to accept requests.
*
* @return the iPAddressOrRange value
*/
public String iPAddressOrRange() {
return this.iPAddressOrRange;
}
Set an IP address or a range of IP addresses from which to accept requests.
Params: - iPAddressOrRange – the iPAddressOrRange value to set
Returns: the ServiceSasParameters object itself.
/**
* Set an IP address or a range of IP addresses from which to accept requests.
*
* @param iPAddressOrRange the iPAddressOrRange value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withIPAddressOrRange(String iPAddressOrRange) {
this.iPAddressOrRange = iPAddressOrRange;
return this;
}
Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
Returns: the protocols value
/**
* Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
*
* @return the protocols value
*/
public HttpProtocol protocols() {
return this.protocols;
}
Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
Params: - protocols – the protocols value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
*
* @param protocols the protocols value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withProtocols(HttpProtocol protocols) {
this.protocols = protocols;
return this;
}
Get the time at which the SAS becomes valid.
Returns: the sharedAccessStartTime value
/**
* Get the time at which the SAS becomes valid.
*
* @return the sharedAccessStartTime value
*/
public DateTime sharedAccessStartTime() {
return this.sharedAccessStartTime;
}
Set the time at which the SAS becomes valid.
Params: - sharedAccessStartTime – the sharedAccessStartTime value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the time at which the SAS becomes valid.
*
* @param sharedAccessStartTime the sharedAccessStartTime value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withSharedAccessStartTime(DateTime sharedAccessStartTime) {
this.sharedAccessStartTime = sharedAccessStartTime;
return this;
}
Get the time at which the shared access signature becomes invalid.
Returns: the sharedAccessExpiryTime value
/**
* Get the time at which the shared access signature becomes invalid.
*
* @return the sharedAccessExpiryTime value
*/
public DateTime sharedAccessExpiryTime() {
return this.sharedAccessExpiryTime;
}
Set the time at which the shared access signature becomes invalid.
Params: - sharedAccessExpiryTime – the sharedAccessExpiryTime value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the time at which the shared access signature becomes invalid.
*
* @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpiryTime) {
this.sharedAccessExpiryTime = sharedAccessExpiryTime;
return this;
}
Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
Returns: the identifier value
/**
* Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
*
* @return the identifier value
*/
public String identifier() {
return this.identifier;
}
Set a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
Params: - identifier – the identifier value to set
Returns: the ServiceSasParameters object itself.
/**
* Set a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
*
* @param identifier the identifier value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withIdentifier(String identifier) {
this.identifier = identifier;
return this;
}
Get the start of partition key.
Returns: the partitionKeyStart value
/**
* Get the start of partition key.
*
* @return the partitionKeyStart value
*/
public String partitionKeyStart() {
return this.partitionKeyStart;
}
Set the start of partition key.
Params: - partitionKeyStart – the partitionKeyStart value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the start of partition key.
*
* @param partitionKeyStart the partitionKeyStart value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withPartitionKeyStart(String partitionKeyStart) {
this.partitionKeyStart = partitionKeyStart;
return this;
}
Get the end of partition key.
Returns: the partitionKeyEnd value
/**
* Get the end of partition key.
*
* @return the partitionKeyEnd value
*/
public String partitionKeyEnd() {
return this.partitionKeyEnd;
}
Set the end of partition key.
Params: - partitionKeyEnd – the partitionKeyEnd value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the end of partition key.
*
* @param partitionKeyEnd the partitionKeyEnd value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withPartitionKeyEnd(String partitionKeyEnd) {
this.partitionKeyEnd = partitionKeyEnd;
return this;
}
Get the start of row key.
Returns: the rowKeyStart value
/**
* Get the start of row key.
*
* @return the rowKeyStart value
*/
public String rowKeyStart() {
return this.rowKeyStart;
}
Set the start of row key.
Params: - rowKeyStart – the rowKeyStart value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the start of row key.
*
* @param rowKeyStart the rowKeyStart value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withRowKeyStart(String rowKeyStart) {
this.rowKeyStart = rowKeyStart;
return this;
}
Get the end of row key.
Returns: the rowKeyEnd value
/**
* Get the end of row key.
*
* @return the rowKeyEnd value
*/
public String rowKeyEnd() {
return this.rowKeyEnd;
}
Set the end of row key.
Params: - rowKeyEnd – the rowKeyEnd value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the end of row key.
*
* @param rowKeyEnd the rowKeyEnd value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withRowKeyEnd(String rowKeyEnd) {
this.rowKeyEnd = rowKeyEnd;
return this;
}
Get the key to sign the account SAS token with.
Returns: the keyToSign value
/**
* Get the key to sign the account SAS token with.
*
* @return the keyToSign value
*/
public String keyToSign() {
return this.keyToSign;
}
Set the key to sign the account SAS token with.
Params: - keyToSign – the keyToSign value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the key to sign the account SAS token with.
*
* @param keyToSign the keyToSign value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withKeyToSign(String keyToSign) {
this.keyToSign = keyToSign;
return this;
}
Get the response header override for cache control.
Returns: the cacheControl value
/**
* Get the response header override for cache control.
*
* @return the cacheControl value
*/
public String cacheControl() {
return this.cacheControl;
}
Set the response header override for cache control.
Params: - cacheControl – the cacheControl value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the response header override for cache control.
*
* @param cacheControl the cacheControl value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withCacheControl(String cacheControl) {
this.cacheControl = cacheControl;
return this;
}
Get the response header override for content disposition.
Returns: the contentDisposition value
/**
* Get the response header override for content disposition.
*
* @return the contentDisposition value
*/
public String contentDisposition() {
return this.contentDisposition;
}
Set the response header override for content disposition.
Params: - contentDisposition – the contentDisposition value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the response header override for content disposition.
*
* @param contentDisposition the contentDisposition value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withContentDisposition(String contentDisposition) {
this.contentDisposition = contentDisposition;
return this;
}
Get the response header override for content encoding.
Returns: the contentEncoding value
/**
* Get the response header override for content encoding.
*
* @return the contentEncoding value
*/
public String contentEncoding() {
return this.contentEncoding;
}
Set the response header override for content encoding.
Params: - contentEncoding – the contentEncoding value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the response header override for content encoding.
*
* @param contentEncoding the contentEncoding value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withContentEncoding(String contentEncoding) {
this.contentEncoding = contentEncoding;
return this;
}
Get the response header override for content language.
Returns: the contentLanguage value
/**
* Get the response header override for content language.
*
* @return the contentLanguage value
*/
public String contentLanguage() {
return this.contentLanguage;
}
Set the response header override for content language.
Params: - contentLanguage – the contentLanguage value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the response header override for content language.
*
* @param contentLanguage the contentLanguage value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withContentLanguage(String contentLanguage) {
this.contentLanguage = contentLanguage;
return this;
}
Get the response header override for content type.
Returns: the contentType value
/**
* Get the response header override for content type.
*
* @return the contentType value
*/
public String contentType() {
return this.contentType;
}
Set the response header override for content type.
Params: - contentType – the contentType value to set
Returns: the ServiceSasParameters object itself.
/**
* Set the response header override for content type.
*
* @param contentType the contentType value to set
* @return the ServiceSasParameters object itself.
*/
public ServiceSasParameters withContentType(String contentType) {
this.contentType = contentType;
return this;
}
}