Class ApplicationTypeVersionsCleanupPolicy
java.lang.Object
com.azure.resourcemanager.servicefabric.models.ApplicationTypeVersionsCleanupPolicy
The ApplicationTypeVersionsCleanupPolicy model.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ApplicationTypeVersionsCleanupPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.void
validate()
Validates the instance.withMaxUnusedVersionsToKeep
(long maxUnusedVersionsToKeep) Set the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.
-
Constructor Details
-
ApplicationTypeVersionsCleanupPolicy
public ApplicationTypeVersionsCleanupPolicy()Creates an instance of ApplicationTypeVersionsCleanupPolicy class.
-
-
Method Details
-
maxUnusedVersionsToKeep
public long maxUnusedVersionsToKeep()Get the maxUnusedVersionsToKeep property: Number of unused versions per application type to keep.- Returns:
- the maxUnusedVersionsToKeep value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-