ApplicationTypeVersionsCleanupPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.ApplicationTypeVersionsCleanupPolicy

Implements

public final class ApplicationTypeVersionsCleanupPolicy
implements JsonSerializable<ApplicationTypeVersionsCleanupPolicy>

The ApplicationTypeVersionsCleanupPolicy model.

Constructor Summary

Constructor Description
ApplicationTypeVersionsCleanupPolicy()

Creates an instance of ApplicationTypeVersionsCleanupPolicy class.

Method Summary

Modifier and Type Method and Description
static ApplicationTypeVersionsCleanupPolicy fromJson(JsonReader jsonReader)

Reads an instance of ApplicationTypeVersionsCleanupPolicy from the JsonReader.

long maxUnusedVersionsToKeep()

Get the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationTypeVersionsCleanupPolicy withMaxUnusedVersionsToKeep(long maxUnusedVersionsToKeep)

Set the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.

Methods inherited from java.lang.Object

Constructor Details

ApplicationTypeVersionsCleanupPolicy

public ApplicationTypeVersionsCleanupPolicy()

Creates an instance of ApplicationTypeVersionsCleanupPolicy class.

Method Details

fromJson

public static ApplicationTypeVersionsCleanupPolicy fromJson(JsonReader jsonReader)

Reads an instance of ApplicationTypeVersionsCleanupPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxUnusedVersionsToKeep

public long maxUnusedVersionsToKeep()

Get the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.

Returns:

the maxUnusedVersionsToKeep value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxUnusedVersionsToKeep

public ApplicationTypeVersionsCleanupPolicy withMaxUnusedVersionsToKeep(long maxUnusedVersionsToKeep)

Set the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.

Parameters:

maxUnusedVersionsToKeep - the maxUnusedVersionsToKeep value to set.

Returns:

the ApplicationTypeVersionsCleanupPolicy object itself.

Applies to