AS2EnvelopeSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.logic.models.AS2EnvelopeSettings

Implements

public final class AS2EnvelopeSettings
implements JsonSerializable<AS2EnvelopeSettings>

The AS2 agreement envelope settings.

Constructor Summary

Constructor Description
AS2EnvelopeSettings()

Creates an instance of AS2EnvelopeSettings class.

Method Summary

Modifier and Type Method and Description
boolean autogenerateFileName()

Get the autogenerateFileName property: The value indicating whether to auto generate file name.

String fileNameTemplate()

Get the fileNameTemplate property: The template for file name.

static AS2EnvelopeSettings fromJson(JsonReader jsonReader)

Reads an instance of AS2EnvelopeSettings from the JsonReader.

String messageContentType()

Get the messageContentType property: The message content type.

boolean suspendMessageOnFileNameGenerationError()

Get the suspendMessageOnFileNameGenerationError property: The value indicating whether to suspend message on file name generation error.

JsonWriter toJson(JsonWriter jsonWriter)
boolean transmitFileNameInMimeHeader()

Get the transmitFileNameInMimeHeader property: The value indicating whether to transmit file name in mime header.

void validate()

Validates the instance.

AS2EnvelopeSettings withAutogenerateFileName(boolean autogenerateFileName)

Set the autogenerateFileName property: The value indicating whether to auto generate file name.

AS2EnvelopeSettings withFileNameTemplate(String fileNameTemplate)

Set the fileNameTemplate property: The template for file name.

AS2EnvelopeSettings withMessageContentType(String messageContentType)

Set the messageContentType property: The message content type.

AS2EnvelopeSettings withSuspendMessageOnFileNameGenerationError(boolean suspendMessageOnFileNameGenerationError)

Set the suspendMessageOnFileNameGenerationError property: The value indicating whether to suspend message on file name generation error.

AS2EnvelopeSettings withTransmitFileNameInMimeHeader(boolean transmitFileNameInMimeHeader)

Set the transmitFileNameInMimeHeader property: The value indicating whether to transmit file name in mime header.

Methods inherited from java.lang.Object

Constructor Details

AS2EnvelopeSettings

public AS2EnvelopeSettings()

Creates an instance of AS2EnvelopeSettings class.

Method Details

autogenerateFileName

public boolean autogenerateFileName()

Get the autogenerateFileName property: The value indicating whether to auto generate file name.

Returns:

the autogenerateFileName value.

fileNameTemplate

public String fileNameTemplate()

Get the fileNameTemplate property: The template for file name.

Returns:

the fileNameTemplate value.

fromJson

public static AS2EnvelopeSettings fromJson(JsonReader jsonReader)

Reads an instance of AS2EnvelopeSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

messageContentType

public String messageContentType()

Get the messageContentType property: The message content type.

Returns:

the messageContentType value.

suspendMessageOnFileNameGenerationError

public boolean suspendMessageOnFileNameGenerationError()

Get the suspendMessageOnFileNameGenerationError property: The value indicating whether to suspend message on file name generation error.

Returns:

the suspendMessageOnFileNameGenerationError value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transmitFileNameInMimeHeader

public boolean transmitFileNameInMimeHeader()

Get the transmitFileNameInMimeHeader property: The value indicating whether to transmit file name in mime header.

Returns:

the transmitFileNameInMimeHeader value.

validate

public void validate()

Validates the instance.

withAutogenerateFileName

public AS2EnvelopeSettings withAutogenerateFileName(boolean autogenerateFileName)

Set the autogenerateFileName property: The value indicating whether to auto generate file name.

Parameters:

autogenerateFileName - the autogenerateFileName value to set.

Returns:

the AS2EnvelopeSettings object itself.

withFileNameTemplate

public AS2EnvelopeSettings withFileNameTemplate(String fileNameTemplate)

Set the fileNameTemplate property: The template for file name.

Parameters:

fileNameTemplate - the fileNameTemplate value to set.

Returns:

the AS2EnvelopeSettings object itself.

withMessageContentType

public AS2EnvelopeSettings withMessageContentType(String messageContentType)

Set the messageContentType property: The message content type.

Parameters:

messageContentType - the messageContentType value to set.

Returns:

the AS2EnvelopeSettings object itself.

withSuspendMessageOnFileNameGenerationError

public AS2EnvelopeSettings withSuspendMessageOnFileNameGenerationError(boolean suspendMessageOnFileNameGenerationError)

Set the suspendMessageOnFileNameGenerationError property: The value indicating whether to suspend message on file name generation error.

Parameters:

suspendMessageOnFileNameGenerationError - the suspendMessageOnFileNameGenerationError value to set.

Returns:

the AS2EnvelopeSettings object itself.

withTransmitFileNameInMimeHeader

public AS2EnvelopeSettings withTransmitFileNameInMimeHeader(boolean transmitFileNameInMimeHeader)

Set the transmitFileNameInMimeHeader property: The value indicating whether to transmit file name in mime header.

Parameters:

transmitFileNameInMimeHeader - the transmitFileNameInMimeHeader value to set.

Returns:

the AS2EnvelopeSettings object itself.

Applies to