SharedAccessSignatureAuthorizationRuleInner Class

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

public final class SharedAccessSignatureAuthorizationRuleInner

The properties of an IoT hub shared access policy.

Constructor Summary

Constructor Description
SharedAccessSignatureAuthorizationRuleInner()

Creates an instance of SharedAccessSignatureAuthorizationRuleInner class.

Method Summary

Modifier and Type Method and Description
String keyName()

Get the keyName property: The name of the shared access policy.

String primaryKey()

Get the primaryKey property: The primary key.

AccessRights rights()

Get the rights property: The permissions assigned to the shared access policy.

String secondaryKey()

Get the secondaryKey property: The secondary key.

void validate()

Validates the instance.

SharedAccessSignatureAuthorizationRuleInner withKeyName(String keyName)

Set the keyName property: The name of the shared access policy.

SharedAccessSignatureAuthorizationRuleInner withPrimaryKey(String primaryKey)

Set the primaryKey property: The primary key.

SharedAccessSignatureAuthorizationRuleInner withRights(AccessRights rights)

Set the rights property: The permissions assigned to the shared access policy.

SharedAccessSignatureAuthorizationRuleInner withSecondaryKey(String secondaryKey)

Set the secondaryKey property: The secondary key.

Methods inherited from java.lang.Object

Constructor Details

SharedAccessSignatureAuthorizationRuleInner

public SharedAccessSignatureAuthorizationRuleInner()

Creates an instance of SharedAccessSignatureAuthorizationRuleInner class.

Method Details

keyName

public String keyName()

Get the keyName property: The name of the shared access policy.

Returns:

the keyName value.

primaryKey

public String primaryKey()

Get the primaryKey property: The primary key.

Returns:

the primaryKey value.

rights

public AccessRights rights()

Get the rights property: The permissions assigned to the shared access policy.

Returns:

the rights value.

secondaryKey

public String secondaryKey()

Get the secondaryKey property: The secondary key.

Returns:

the secondaryKey value.

validate

public void validate()

Validates the instance.

withKeyName

public SharedAccessSignatureAuthorizationRuleInner withKeyName(String keyName)

Set the keyName property: The name of the shared access policy.

Parameters:

keyName - the keyName value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

withPrimaryKey

public SharedAccessSignatureAuthorizationRuleInner withPrimaryKey(String primaryKey)

Set the primaryKey property: The primary key.

Parameters:

primaryKey - the primaryKey value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

withRights

public SharedAccessSignatureAuthorizationRuleInner withRights(AccessRights rights)

Set the rights property: The permissions assigned to the shared access policy.

Parameters:

rights - the rights value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

withSecondaryKey

public SharedAccessSignatureAuthorizationRuleInner withSecondaryKey(String secondaryKey)

Set the secondaryKey property: The secondary key.

Parameters:

secondaryKey - the secondaryKey value to set.

Returns:

the SharedAccessSignatureAuthorizationRuleInner object itself.

Applies to