Class HybridConnectionProperties
java.lang.Object
com.azure.resourcemanager.relay.fluent.models.HybridConnectionProperties
Properties of the HybridConnection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createdAt property: The time the hybrid connection was created.Get the listenerCount property: The number of listeners for this hybrid connection.Get the requiresClientAuthorization property: Returns true if client authorization is needed for this hybrid connection; otherwise, false.Get the updatedAt property: The time the namespace was updated.Get the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint.void
validate()
Validates the instance.withRequiresClientAuthorization
(Boolean requiresClientAuthorization) Set the requiresClientAuthorization property: Returns true if client authorization is needed for this hybrid connection; otherwise, false.withUserMetadata
(String userMetadata) Set the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint.
-
Constructor Details
-
HybridConnectionProperties
public HybridConnectionProperties()
-
-
Method Details
-
createdAt
Get the createdAt property: The time the hybrid connection was created.- Returns:
- the createdAt value.
-
updatedAt
Get the updatedAt property: The time the namespace was updated.- Returns:
- the updatedAt value.
-
listenerCount
Get the listenerCount property: The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported.- Returns:
- the listenerCount value.
-
requiresClientAuthorization
Get the requiresClientAuthorization property: Returns true if client authorization is needed for this hybrid connection; otherwise, false.- Returns:
- the requiresClientAuthorization value.
-
withRequiresClientAuthorization
public HybridConnectionProperties withRequiresClientAuthorization(Boolean requiresClientAuthorization) Set the requiresClientAuthorization property: Returns true if client authorization is needed for this hybrid connection; otherwise, false.- Parameters:
requiresClientAuthorization
- the requiresClientAuthorization value to set.- Returns:
- the HybridConnectionProperties object itself.
-
userMetadata
Get the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.- Returns:
- the userMetadata value.
-
withUserMetadata
Set the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.- Parameters:
userMetadata
- the userMetadata value to set.- Returns:
- the HybridConnectionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-