ApplicationTypeVersionsCleanupPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ApplicationTypeVersionsCleanupPolicy
- com.
Implements
public final class ApplicationTypeVersionsCleanupPolicy
implements JsonSerializable<ApplicationTypeVersionsCleanupPolicy>
The ApplicationTypeVersionsCleanupPolicy model.
Constructor Summary
| Constructor | Description |
|---|---|
| ApplicationTypeVersionsCleanupPolicy() |
Creates an instance of Application |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
| long |
maxUnusedVersionsToKeep()
Get the max |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Application |
withMaxUnusedVersionsToKeep(long maxUnusedVersionsToKeep)
Set the max |
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:
Returns:
Throws:
maxUnusedVersionsToKeep
public long maxUnusedVersionsToKeep()
Get the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.
Returns:
toJson
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:
Returns: