Aracılığıyla paylaş


UploadCertificateRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.databoxedge.models.UploadCertificateRequest

Implements

public final class UploadCertificateRequest
implements JsonSerializable<UploadCertificateRequest>

The upload certificate request.

Constructor Summary

Constructor Description
UploadCertificateRequest()

Creates an instance of UploadCertificateRequest class.

Method Summary

Modifier and Type Method and Description
AuthenticationType authenticationType()

Get the authenticationType property: The authentication type.

String certificate()

Get the certificate property: The base64 encoded certificate raw data.

static UploadCertificateRequest fromJson(JsonReader jsonReader)

Reads an instance of UploadCertificateRequest from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UploadCertificateRequest withAuthenticationType(AuthenticationType authenticationType)

Set the authenticationType property: The authentication type.

UploadCertificateRequest withCertificate(String certificate)

Set the certificate property: The base64 encoded certificate raw data.

Methods inherited from java.lang.Object

Constructor Details

UploadCertificateRequest

public UploadCertificateRequest()

Creates an instance of UploadCertificateRequest class.

Method Details

authenticationType

public AuthenticationType authenticationType()

Get the authenticationType property: The authentication type.

Returns:

the authenticationType value.

certificate

public String certificate()

Get the certificate property: The base64 encoded certificate raw data.

Returns:

the certificate value.

fromJson

public static UploadCertificateRequest fromJson(JsonReader jsonReader)

Reads an instance of UploadCertificateRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UploadCertificateRequest 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthenticationType

public UploadCertificateRequest withAuthenticationType(AuthenticationType authenticationType)

Set the authenticationType property: The authentication type.

Parameters:

authenticationType - the authenticationType value to set.

Returns:

the UploadCertificateRequest object itself.

withCertificate

public UploadCertificateRequest withCertificate(String certificate)

Set the certificate property: The base64 encoded certificate raw data.

Parameters:

certificate - the certificate value to set.

Returns:

the UploadCertificateRequest object itself.

Applies to