Package com.nike.pdm.localstack.aws.s3
Class DeleteS3BucketsTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- com.nike.pdm.localstack.aws.s3.DeleteS3BucketsTask
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
public class DeleteS3BucketsTask extends org.gradle.api.DefaultTaskTask that deletes S3 buckets.
-
-
Constructor Summary
Constructors Constructor Description DeleteS3BucketsTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getBuckets()Gets the names of the buckets to delete.java.lang.StringgetDescription()java.lang.BooleangetForce()Gets whether or not buckets containing objects should be deleted.java.lang.StringgetGroup()voidrun()voidsetBuckets(java.lang.String buckets)Sets the names of the buckets to delete.voidsetBuckets(java.util.List<java.lang.String> buckets)Sets the names of the buckets to delete.voidsetForce(java.lang.Boolean force)Sets whether or not buckets containing objects should be deleted.-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
-
-
-
Method Detail
-
run
public void run()
-
getGroup
@Internal public java.lang.String getGroup()
- Specified by:
getGroupin interfaceorg.gradle.api.Task- Overrides:
getGroupin classorg.gradle.api.internal.AbstractTask
-
getDescription
@Internal public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceorg.gradle.api.Task- Overrides:
getDescriptionin classorg.gradle.api.internal.AbstractTask
-
getBuckets
public java.util.List<java.lang.String> getBuckets()
Gets the names of the buckets to delete.- Returns:
- bucket names
-
setBuckets
public void setBuckets(java.util.List<java.lang.String> buckets)
Sets the names of the buckets to delete.- Parameters:
buckets- bucket names
-
setBuckets
public void setBuckets(java.lang.String buckets)
Sets the names of the buckets to delete. This method allows the bucket names to be specified as a comma-delimited list of strings.- Parameters:
buckets- bucket names.
-
getForce
public java.lang.Boolean getForce()
Gets whether or not buckets containing objects should be deleted.- Returns:
trueif non-empty buckets should be deleted; otherwisefalse
-
setForce
public void setForce(java.lang.Boolean force)
Sets whether or not buckets containing objects should be deleted.- Parameters:
force-trueif non-empty buckets should be deleted;falseif an error should occur.
-
-