Class EndpointCertificateProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.EndpointCertificateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointCertificateProperties>
public final class EndpointCertificateProperties
extends Object
implements com.azure.json.JsonSerializable<EndpointCertificateProperties>
The properties of an endpoint certificate.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EndpointCertificateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EndpointCertificateProperties from the JsonReader.Get the publicBlob property: The certificate public blob.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublicBlob(String publicBlob) Set the publicBlob property: The certificate public blob.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
-
EndpointCertificateProperties
public EndpointCertificateProperties()Creates an instance of EndpointCertificateProperties class.
-
-
Method Details
-
publicBlob
Get the publicBlob property: The certificate public blob.- Returns:
- the publicBlob value.
-
withPublicBlob
Set the publicBlob property: The certificate public blob.- Parameters:
publicBlob- the publicBlob value to set.- Returns:
- the EndpointCertificateProperties 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<EndpointCertificateProperties>- Throws:
IOException
-
fromJson
public static EndpointCertificateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EndpointCertificateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EndpointCertificateProperties 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 EndpointCertificateProperties.
-