Class ServerTrustGroupProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ServerTrustGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerTrustGroupProperties>
public final class ServerTrustGroupProperties
extends Object
implements com.azure.json.JsonSerializable<ServerTrustGroupProperties>
Properties of a server trust group.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServerTrustGroupProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerTrustGroupPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerTrustGroupProperties from the JsonReader.Get the groupMembers property: Group members information for the server trust group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the trustScopes property: Trust scope of the server trust group.voidvalidate()Validates the instance.withGroupMembers(List<ServerInfo> groupMembers) Set the groupMembers property: Group members information for the server trust group.withTrustScopes(List<ServerTrustGroupPropertiesTrustScopesItem> trustScopes) Set the trustScopes property: Trust scope of the server trust group.Methods inherited from class java.lang.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
-
ServerTrustGroupProperties
public ServerTrustGroupProperties()Creates an instance of ServerTrustGroupProperties class.
-
-
Method Details
-
groupMembers
Get the groupMembers property: Group members information for the server trust group.- Returns:
- the groupMembers value.
-
withGroupMembers
Set the groupMembers property: Group members information for the server trust group.- Parameters:
groupMembers- the groupMembers value to set.- Returns:
- the ServerTrustGroupProperties object itself.
-
trustScopes
Get the trustScopes property: Trust scope of the server trust group.- Returns:
- the trustScopes value.
-
withTrustScopes
public ServerTrustGroupProperties withTrustScopes(List<ServerTrustGroupPropertiesTrustScopesItem> trustScopes) Set the trustScopes property: Trust scope of the server trust group.- Parameters:
trustScopes- the trustScopes value to set.- Returns:
- the ServerTrustGroupProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServerTrustGroupProperties>- Throws:
IOException
-
fromJson
public static ServerTrustGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServerTrustGroupProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServerTrustGroupProperties 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 ServerTrustGroupProperties.
-