ApplicationTypeVersionsCleanupPolicy Class

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

public final class ApplicationTypeVersionsCleanupPolicy

The ApplicationTypeVersionsCleanupPolicy model.

Constructor Summary

Constructor Description
ApplicationTypeVersionsCleanupPolicy()

Creates an instance of ApplicationTypeVersionsCleanupPolicy class.

Method Summary

Modifier and Type Method and Description
long maxUnusedVersionsToKeep()

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

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

maxUnusedVersionsToKeep

public long maxUnusedVersionsToKeep()

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

Returns:

the maxUnusedVersionsToKeep value.

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