Class CsmPublishingProfileOptions
java.lang.Object
com.azure.resourcemanager.appservice.models.CsmPublishingProfileOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CsmPublishingProfileOptions>
public final class CsmPublishingProfileOptions
extends Object
implements com.azure.json.JsonSerializable<CsmPublishingProfileOptions>
Publishing options for requested profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CsmPublishingProfileOptions class. -
Method Summary
Modifier and TypeMethodDescriptionformat()Get the format property: Name of the format.static CsmPublishingProfileOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CsmPublishingProfileOptions from the JsonReader.Get the includeDisasterRecoveryEndpoints property: Include the DisasterRecover endpoint if true.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFormat(PublishingProfileFormat format) Set the format property: Name of the format.withIncludeDisasterRecoveryEndpoints(Boolean includeDisasterRecoveryEndpoints) Set the includeDisasterRecoveryEndpoints property: Include the DisasterRecover endpoint if true.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
-
CsmPublishingProfileOptions
public CsmPublishingProfileOptions()Creates an instance of CsmPublishingProfileOptions class.
-
-
Method Details
-
format
Get the format property: Name of the format. Valid values are: FileZilla3 WebDeploy -- default Ftp.- Returns:
- the format value.
-
withFormat
Set the format property: Name of the format. Valid values are: FileZilla3 WebDeploy -- default Ftp.- Parameters:
format- the format value to set.- Returns:
- the CsmPublishingProfileOptions object itself.
-
includeDisasterRecoveryEndpoints
Get the includeDisasterRecoveryEndpoints property: Include the DisasterRecover endpoint if true.- Returns:
- the includeDisasterRecoveryEndpoints value.
-
withIncludeDisasterRecoveryEndpoints
public CsmPublishingProfileOptions withIncludeDisasterRecoveryEndpoints(Boolean includeDisasterRecoveryEndpoints) Set the includeDisasterRecoveryEndpoints property: Include the DisasterRecover endpoint if true.- Parameters:
includeDisasterRecoveryEndpoints- the includeDisasterRecoveryEndpoints value to set.- Returns:
- the CsmPublishingProfileOptions 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<CsmPublishingProfileOptions>- Throws:
IOException
-
fromJson
public static CsmPublishingProfileOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CsmPublishingProfileOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CsmPublishingProfileOptions 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 CsmPublishingProfileOptions.
-