Class HybridConnectionInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.fluent.models.HybridConnectionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Hybrid Connection contract. This is used to configure a Hybrid Connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HybridConnectionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HybridConnectionInner from the JsonReader.hostname()Get the hostname property: The hostname of the endpoint.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.port()Get the port property: The port of the endpoint.Get the relayArmUri property: The ARM URI to the Service Bus relay.Get the relayName property: The name of the Service Bus relay.Get the sendKeyName property: The name of the Service Bus key which has Send permissions.Get the sendKeyValue property: The value of the Service Bus key.Get the serviceBusNamespace property: The name of the Service Bus namespace.Get the serviceBusSuffix property: The suffix for the service bus endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withHostname(String hostname) Set the hostname property: The hostname of the endpoint.Set the kind property: Kind of resource.Set the port property: The port of the endpoint.withRelayArmUri(String relayArmUri) Set the relayArmUri property: The ARM URI to the Service Bus relay.withRelayName(String relayName) Set the relayName property: The name of the Service Bus relay.withSendKeyName(String sendKeyName) Set the sendKeyName property: The name of the Service Bus key which has Send permissions.withSendKeyValue(String sendKeyValue) Set the sendKeyValue property: The value of the Service Bus key.withServiceBusNamespace(String serviceBusNamespace) Set the serviceBusNamespace property: The name of the Service Bus namespace.withServiceBusSuffix(String serviceBusSuffix) Set the serviceBusSuffix property: The suffix for the service bus endpoint.Methods inherited from class ProxyOnlyResource
kindMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HybridConnectionInner
public HybridConnectionInner()Creates an instance of HybridConnectionInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
serviceBusNamespace
Get the serviceBusNamespace property: The name of the Service Bus namespace.- Returns:
- the serviceBusNamespace value.
-
withServiceBusNamespace
Set the serviceBusNamespace property: The name of the Service Bus namespace.- Parameters:
serviceBusNamespace- the serviceBusNamespace value to set.- Returns:
- the HybridConnectionInner object itself.
-
relayName
Get the relayName property: The name of the Service Bus relay.- Returns:
- the relayName value.
-
withRelayName
Set the relayName property: The name of the Service Bus relay.- Parameters:
relayName- the relayName value to set.- Returns:
- the HybridConnectionInner object itself.
-
relayArmUri
Get the relayArmUri property: The ARM URI to the Service Bus relay.- Returns:
- the relayArmUri value.
-
withRelayArmUri
Set the relayArmUri property: The ARM URI to the Service Bus relay.- Parameters:
relayArmUri- the relayArmUri value to set.- Returns:
- the HybridConnectionInner object itself.
-
hostname
Get the hostname property: The hostname of the endpoint.- Returns:
- the hostname value.
-
withHostname
Set the hostname property: The hostname of the endpoint.- Parameters:
hostname- the hostname value to set.- Returns:
- the HybridConnectionInner object itself.
-
port
-
withPort
Set the port property: The port of the endpoint.- Parameters:
port- the port value to set.- Returns:
- the HybridConnectionInner object itself.
-
sendKeyName
Get the sendKeyName property: The name of the Service Bus key which has Send permissions. This is used to authenticate to Service Bus.- Returns:
- the sendKeyName value.
-
withSendKeyName
Set the sendKeyName property: The name of the Service Bus key which has Send permissions. This is used to authenticate to Service Bus.- Parameters:
sendKeyName- the sendKeyName value to set.- Returns:
- the HybridConnectionInner object itself.
-
sendKeyValue
Get the sendKeyValue property: The value of the Service Bus key. This is used to authenticate to Service Bus. In ARM this key will not be returned normally, use the POST /listKeys API instead.- Returns:
- the sendKeyValue value.
-
withSendKeyValue
Set the sendKeyValue property: The value of the Service Bus key. This is used to authenticate to Service Bus. In ARM this key will not be returned normally, use the POST /listKeys API instead.- Parameters:
sendKeyValue- the sendKeyValue value to set.- Returns:
- the HybridConnectionInner object itself.
-
serviceBusSuffix
Get the serviceBusSuffix property: The suffix for the service bus endpoint. By default this is .servicebus.windows.net.- Returns:
- the serviceBusSuffix value.
-
withServiceBusSuffix
Set the serviceBusSuffix property: The suffix for the service bus endpoint. By default this is .servicebus.windows.net.- Parameters:
serviceBusSuffix- the serviceBusSuffix value to set.- Returns:
- the HybridConnectionInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
public static HybridConnectionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of HybridConnectionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of HybridConnectionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the HybridConnectionInner.
-