java.lang.Object
com.azure.resourcemanager.servicebus.fluent.models.AccessKeysInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessKeysInner>
public final class AccessKeysInner
extends Object
implements com.azure.json.JsonSerializable<AccessKeysInner>
Namespace/ServiceBus Connection String.
-
Constructor Summary
Constructors
Creates an instance of AccessKeysInner class.
-
Method Summary
Get the aliasPrimaryConnectionString property: Primary connection string of the alias if GEO DR is enabled.
Get the aliasSecondaryConnectionString property: Secondary connection string of the alias if GEO DR is enabled.
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of AccessKeysInner from the JsonReader.
Get the keyName property: A string that describes the authorization rule.
Get the primaryConnectionString property: Primary connection string of the created namespace authorization rule.
Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
Get the secondaryConnectionString property: Secondary connection string of the created namespace authorization
rule.
Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AccessKeysInner
public AccessKeysInner()
Creates an instance of AccessKeysInner class.
-
Method Details
-
primaryConnectionString
public String primaryConnectionString()
Get the primaryConnectionString property: Primary connection string of the created namespace authorization rule.
- Returns:
- the primaryConnectionString value.
-
secondaryConnectionString
public String secondaryConnectionString()
Get the secondaryConnectionString property: Secondary connection string of the created namespace authorization
rule.
- Returns:
- the secondaryConnectionString value.
-
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.
-
primaryKey
Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
- Returns:
- the primaryKey value.
-
secondaryKey
Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
- Returns:
- the secondaryKey value.
-
keyName
Get the keyName property: A string that describes the authorization rule.
- Returns:
- the keyName value.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.
-
toJson
public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter)
throws IOException
- Specified by:
toJson in interface com.azure.json.JsonSerializable<AccessKeysInner>
- Throws:
IOException
-
fromJson
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.