Dela via


AccessKeysInner Class

  • java.lang.Object
    • com.azure.resourcemanager.servicebus.fluent.models.AccessKeysInner

Implements

public final class AccessKeysInner
implements JsonSerializable<AccessKeysInner>

Namespace/ServiceBus Connection String.

Constructor Summary

Constructor Description
AccessKeysInner()

Creates an instance of AccessKeysInner class.

Method Summary

Modifier and Type Method and Description
String aliasPrimaryConnectionString()

Get the aliasPrimaryConnectionString property: Primary connection string of the alias if GEO DR is enabled.

String aliasSecondaryConnectionString()

Get the aliasSecondaryConnectionString property: Secondary connection string of the alias if GEO DR is enabled.

static AccessKeysInner fromJson(JsonReader jsonReader)

Reads an instance of AccessKeysInner from the JsonReader.

String keyName()

Get the keyName property: A string that describes the authorization rule.

String primaryConnectionString()

Get the primaryConnectionString property: Primary connection string of the created namespace authorization rule.

String primaryKey()

Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.

String secondaryConnectionString()

Get the secondaryConnectionString property: Secondary connection string of the created namespace authorization rule.

String secondaryKey()

Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

AccessKeysInner

public AccessKeysInner()

Creates an instance of AccessKeysInner class.

Method Details

aliasPrimaryConnectionString

public String aliasPrimaryConnectionString()

Get the aliasPrimaryConnectionString property: Primary connection string of the alias if GEO DR is enabled.

Returns:

the aliasPrimaryConnectionString value.

aliasSecondaryConnectionString

public String aliasSecondaryConnectionString()

Get the aliasSecondaryConnectionString property: Secondary connection string of the alias if GEO DR is enabled.

Returns:

the aliasSecondaryConnectionString value.

fromJson

public static AccessKeysInner fromJson(JsonReader jsonReader)

Reads an instance of AccessKeysInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AccessKeysInner.

keyName

public String keyName()

Get the keyName property: A string that describes the authorization rule.

Returns:

the keyName value.

primaryConnectionString

public String primaryConnectionString()

Get the primaryConnectionString property: Primary connection string of the created namespace authorization rule.

Returns:

the primaryConnectionString value.

primaryKey

public String primaryKey()

Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.

Returns:

the primaryKey value.

secondaryConnectionString

public String secondaryConnectionString()

Get the secondaryConnectionString property: Secondary connection string of the created namespace authorization rule.

Returns:

the secondaryConnectionString value.

secondaryKey

public String secondaryKey()

Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.

Returns:

the secondaryKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to