GetBucketLifecycleRuleCondition constructor

const GetBucketLifecycleRuleCondition({
  1. required Input<int> age,
  2. required Input<String> createdBefore,
  3. required Input<String> customTimeBefore,
  4. required Input<int> daysSinceCustomTime,
  5. required Input<int> daysSinceNoncurrentTime,
  6. required Input<List<String>> matchesPrefixes,
  7. required Input<List<String>> matchesStorageClasses,
  8. required Input<List<String>> matchesSuffixes,
  9. required Input<String> noncurrentTimeBefore,
  10. required Input<int> numNewerVersions,
  11. required Input<bool> sendAgeIfZero,
  12. required Input<bool> sendDaysSinceCustomTimeIfZero,
  13. required Input<bool> sendDaysSinceNoncurrentTimeIfZero,
  14. required Input<bool> sendNumNewerVersionsIfZero,
  15. required Input<int> sizeAboveBytes,
  16. required Input<int> sizeBelowBytes,
  17. required Input<String> withState,
})

Creates a new GetBucketLifecycleRuleCondition. age Minimum age of an object in days to satisfy this condition. createdBefore Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition. customTimeBefore Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition. daysSinceCustomTime Number of days elapsed since the user-specified timestamp set on an object. daysSinceNoncurrentTime Number of days elapsed since the noncurrent timestamp of an object. This matchesPrefixes One or more matching name prefixes to satisfy this condition. matchesStorageClasses Storage Class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, DURABLE_REDUCED_AVAILABILITY. matchesSuffixes One or more matching name suffixes to satisfy this condition. noncurrentTimeBefore Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition. numNewerVersions Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition. sendAgeIfZero While set true, age value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the age field. It can be used alone or together with age. sendDaysSinceCustomTimeIfZero While set true, daysSinceCustomTime value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the daysSinceCustomTime field. It can be used alone or together with days_since_custom_time. sendDaysSinceNoncurrentTimeIfZero While set true, daysSinceNoncurrentTime value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the daysSinceNoncurrentTime field. It can be used alone or together with days_since_noncurrent_time. sendNumNewerVersionsIfZero While set true, numNewerVersions value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the numNewerVersions field. It can be used alone or together with num_newer_versions. sizeAboveBytes Objects having a size greater than this value in bytes will be matched. sizeBelowBytes Objects having a size less than this value in bytes will be matched. withState Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".

Implementation

const GetBucketLifecycleRuleCondition({
  required this.age,
  required this.createdBefore,
  required this.customTimeBefore,
  required this.daysSinceCustomTime,
  required this.daysSinceNoncurrentTime,
  required this.matchesPrefixes,
  required this.matchesStorageClasses,
  required this.matchesSuffixes,
  required this.noncurrentTimeBefore,
  required this.numNewerVersions,
  required this.sendAgeIfZero,
  required this.sendDaysSinceCustomTimeIfZero,
  required this.sendDaysSinceNoncurrentTimeIfZero,
  required this.sendNumNewerVersionsIfZero,
  required this.sizeAboveBytes,
  required this.sizeBelowBytes,
  required this.withState,
});