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 Details

    • ServerTrustGroupProperties

      public ServerTrustGroupProperties()
      Creates an instance of ServerTrustGroupProperties class.
  • Method Details

    • groupMembers

      public List<ServerInfo> groupMembers()
      Get the groupMembers property: Group members information for the server trust group.
      Returns:
      the groupMembers value.
    • withGroupMembers

      public ServerTrustGroupProperties withGroupMembers(List<ServerInfo> groupMembers)
      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

      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.