SharedAccessSignatureAuthorizationRuleInner Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.fluent.models.SharedAccessSignatureAuthorizationRuleInner

Implements

public final class SharedAccessSignatureAuthorizationRuleInner
implements JsonSerializable<SharedAccessSignatureAuthorizationRuleInner>

Description of the shared access key.

Constructor Summary

Constructor Description
SharedAccessSignatureAuthorizationRuleInner()

Creates an instance of SharedAccessSignatureAuthorizationRuleInner class.

Method Summary

Modifier and Type Method and Description
static SharedAccessSignatureAuthorizationRuleInner fromJson(JsonReader jsonReader)

Reads an instance of SharedAccessSignatureAuthorizationRuleInner from the JsonReader.

String keyName()

Get the keyName property: Name of the key.

String primaryKey()

Get the primaryKey property: Primary SAS key value.

AccessRightsDescription rights()

Get the rights property: Rights that this key has.

String secondaryKey()

Get the secondaryKey property: Secondary SAS key value.

JsonWriter toJson(JsonWriter jsonWriter)
SharedAccessSignatureAuthorizationRuleInner withKeyName(String keyName)

Set the keyName property: Name of the key.

SharedAccessSignatureAuthorizationRuleInner withPrimaryKey(String primaryKey)

Set the primaryKey property: Primary SAS key value.

SharedAccessSignatureAuthorizationRuleInner withRights(AccessRightsDescription rights)

Set the rights property: Rights that this key has.

SharedAccessSignatureAuthorizationRuleInner withSecondaryKey(String secondaryKey)

Set the secondaryKey property: Secondary SAS key value.

Methods inherited from java.lang.Object

Constructor Details

SharedAccessSignatureAuthorizationRuleInner

public SharedAccessSignatureAuthorizationRuleInner()

Creates an instance of SharedAccessSignatureAuthorizationRuleInner class.

Method Details

fromJson

public static SharedAccessSignatureAuthorizationRuleInner fromJson(JsonReader jsonReader)

Reads an instance of SharedAccessSignatureAuthorizationRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SharedAccessSignatureAuthorizationRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

keyName

public String keyName()

Get the keyName property: Name of the key.

Returns:

the keyName value.

primaryKey

public String primaryKey()

Get the primaryKey property: Primary SAS key value.

Returns:

the primaryKey value.

rights

public AccessRightsDescription rights()

Get the rights property: Rights that this key has.

Returns:

the rights value.

secondaryKey

public String secondaryKey()

Get the secondaryKey property: Secondary SAS key value.

Returns:

the secondaryKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withKeyName

public SharedAccessSignatureAuthorizationRuleInner withKeyName(String keyName)

Set the keyName property: Name of the key.

Parameters:

keyName - the keyName value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

withPrimaryKey

public SharedAccessSignatureAuthorizationRuleInner withPrimaryKey(String primaryKey)

Set the primaryKey property: Primary SAS key value.

Parameters:

primaryKey - the primaryKey value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

withRights

public SharedAccessSignatureAuthorizationRuleInner withRights(AccessRightsDescription rights)

Set the rights property: Rights that this key has.

Parameters:

rights - the rights value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

withSecondaryKey

public SharedAccessSignatureAuthorizationRuleInner withSecondaryKey(String secondaryKey)

Set the secondaryKey property: Secondary SAS key value.

Parameters:

secondaryKey - the secondaryKey value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

Applies to