/** * Sets the version of the output schema to use when exporting data. */ public void setOutputSchemaVersion(StorageClassAnalysisSchemaVersion outputSchemaVersion) { if (outputSchemaVersion == null) { setOutputSchemaVersion((String) null); } else { setOutputSchemaVersion(outputSchemaVersion.toString()); } }
@Override public void accept(AnalyticsPredicateVisitor analyticsPredicateVisitor) { analyticsPredicateVisitor.visit(this); } }
@Override public void visit(AnalyticsAndOperator analyticsAndOperator) { xml.start("And"); for (AnalyticsFilterPredicate predicate : analyticsAndOperator.getOperands()) { predicate.accept(this); } xml.end(); } }
/** * Sets the file format used when exporting data to Amazon S3. * Returns this object for method chaining. */ public AnalyticsS3BucketDestination withFormat(String format) { setFormat(format); return this; }
/** * Sets the version of the output schema to use when exporting data * and returns this object for method chaining. */ public StorageClassAnalysisDataExport withOutputSchemaVersion(String outputSchemaVersion) { setOutputSchemaVersion(outputSchemaVersion); return this; }
/** * Sets the prefix to use when exporting data. The exported data begins with this prefix. * The object is returned for method chaining. */ public AnalyticsS3BucketDestination withPrefix(String prefix) { setPrefix(prefix); return this; } }
/** * Sets the place to store the data for an analysis * and return this object for method chaining. */ public StorageClassAnalysisDataExport withDestination(AnalyticsExportDestination destination) { setDestination(destination); return this; } }
/** * Sets the container used to describe how data related to the * storage class analysis should be exported. * * Returns this object for method chaining. */ public StorageClassAnalysis withDataExport(StorageClassAnalysisDataExport dataExport) { setDataExport(dataExport); return this; } }
public AnalyticsExportDestination withS3BucketDestination(AnalyticsS3BucketDestination s3BucketDestination) { setS3BucketDestination(s3BucketDestination); return this; } }
/** * Sets the filter used to describe a set of objects for analysis. * If no filter is provided, all objects will be considered in any analysis. * * The {@link AnalyticsConfiguration} object is returned for method chaining. */ public AnalyticsConfiguration withFilter(AnalyticsFilter filter) { setFilter(filter); return this; }
/** * Sets the {@link AnalyticsFilterPredicate} to be used when evaluating an analytics filter * and returns the {@link AnalyticsFilter} object for method chaining. * * The predicate should be one of {@link AnalyticsPrefixPredicate}, {@link AnalyticsTagPredicate} * or {@link AnalyticsAndOperator}. */ public AnalyticsFilter withPredicate(AnalyticsFilterPredicate predicate) { setPredicate(predicate); return this; } }
/** * Sets the StorageClassAnalysis object which indicates that data related to access patterns * will be collected and made available to analyze the tradeoffs between different storage classes. * * The {@link AnalyticsConfiguration} object is returned for method chaining. */ public AnalyticsConfiguration withStorageClassAnalysis(StorageClassAnalysis storageClassAnalysis) { setStorageClassAnalysis(storageClassAnalysis); return this; } }
/** * Sets the identifier used to represent an analytics configuration * and returns the {@link AnalyticsConfiguration} object * for method chaining. */ public AnalyticsConfiguration withId(String id) { setId(id); return this; }
/** * Sets the account ID that owns the destination bucket and returns this object for method chaining. * If no account ID is provided, the owner will not be validated prior to exporting data. */ public AnalyticsS3BucketDestination withBucketAccountId(String bucketAccountId) { setBucketAccountId(bucketAccountId); return this; }
/** * Sets the Amazon resource name (ARN) of the bucket to which data is exported * and returns this object for method chaining. */ public AnalyticsS3BucketDestination withBucketArn(String bucketArn) { setBucketArn(bucketArn); return this; }
@Override public void accept(AnalyticsPredicateVisitor analyticsPredicateVisitor) { analyticsPredicateVisitor.visit(this); } }
/** * Sets the file format used when exporting data to Amazon S3. * Returns this object for method chaining. */ public AnalyticsS3BucketDestination withFormat(AnalyticsS3ExportFileFormat format) { setFormat(format); return this; }
/** * Sets the version of the output schema to use when exporting data * and returns this object for method chaining. */ public StorageClassAnalysisDataExport withOutputSchemaVersion(StorageClassAnalysisSchemaVersion outputSchemaVersion) { setOutputSchemaVersion(outputSchemaVersion); return this; }
@Override public void accept(AnalyticsPredicateVisitor analyticsPredicateVisitor) { analyticsPredicateVisitor.visit(this); } }