ServerTrustCertificateInner Class

public final class ServerTrustCertificateInner
extends ProxyResource

Server trust certificate imported from box to enable connection between box and Sql Managed Instance.

Constructor Summary

Constructor Description
ServerTrustCertificateInner()

Creates an instance of ServerTrustCertificateInner class.

Method Summary

Modifier and Type Method and Description
String certificateName()

Get the certificateName property: The certificate name.

static ServerTrustCertificateInner fromJson(JsonReader jsonReader)

Reads an instance of ServerTrustCertificateInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String publicBlob()

Get the publicBlob property: The certificate public blob.

String thumbprint()

Get the thumbprint property: The certificate thumbprint.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ServerTrustCertificateInner withPublicBlob(String publicBlob)

Set the publicBlob property: The certificate public blob.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ServerTrustCertificateInner

public ServerTrustCertificateInner()

Creates an instance of ServerTrustCertificateInner class.

Method Details

certificateName

public String certificateName()

Get the certificateName property: The certificate name.

Returns:

the certificateName value.

fromJson

public static ServerTrustCertificateInner fromJson(JsonReader jsonReader)

Reads an instance of ServerTrustCertificateInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerTrustCertificateInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ServerTrustCertificateInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServerTrustCertificateInner.name()

Returns:

the name value.

publicBlob

public String publicBlob()

Get the publicBlob property: The certificate public blob.

Returns:

the publicBlob value.

thumbprint

public String thumbprint()

Get the thumbprint property: The certificate thumbprint.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServerTrustCertificateInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServerTrustCertificateInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPublicBlob

public ServerTrustCertificateInner withPublicBlob(String publicBlob)

Set the publicBlob property: The certificate public blob.

Parameters:

publicBlob - the publicBlob value to set.

Returns:

the ServerTrustCertificateInner object itself.

Applies to