Struct: s3.LifecycleRuleAndOperator
Overview
This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
- ObjectSizeGreaterThan *int64
- ObjectSizeLessThan *int64
-
Prefix *string
Prefix identifying one or more objects to which the rule applies.
-
Tags []*Tag
All of these tags must exist in the object’s tag set in order for the rule to apply.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetObjectSizeGreaterThan(int64) *LifecycleRuleAndOperator
operation
SetObjectSizeGreaterThan sets the ObjectSizeGreaterThan field’s value.
-
SetObjectSizeLessThan(int64) *LifecycleRuleAndOperator
operation
SetObjectSizeLessThan sets the ObjectSizeLessThan field’s value.
-
SetPrefix(string) *LifecycleRuleAndOperator
operation
SetPrefix sets the Prefix field’s value.
-
SetTags([]*Tag) *LifecycleRuleAndOperator
operation
SetTags sets the Tags field’s value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
ObjectSizeGreaterThan *int64
`type:"long"`
ObjectSizeLessThan *int64
`type:"long"`
Prefix *string
`type:"string"`
Prefix identifying one or more objects to which the rule applies.
Tags []*Tag
`locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"`
All of these tags must exist in the object’s tag set in order for the rule to apply.
_ struct{}
`type:"structure"`
Method Details
func (s LifecycleRuleAndOperator) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
15918 15919 15920 |
// File 'service/s3/api.go', line 15918
|
func (s *LifecycleRuleAndOperator) SetObjectSizeGreaterThan(v int64) *LifecycleRuleAndOperator
SetObjectSizeGreaterThan sets the ObjectSizeGreaterThan field’s value.
15943 15944 15945 15946 |
// File 'service/s3/api.go', line 15943
|
func (s *LifecycleRuleAndOperator) SetObjectSizeLessThan(v int64) *LifecycleRuleAndOperator
SetObjectSizeLessThan sets the ObjectSizeLessThan field’s value.
15949 15950 15951 15952 |
// File 'service/s3/api.go', line 15949
|
func (s *LifecycleRuleAndOperator) SetPrefix(v string) *LifecycleRuleAndOperator
SetPrefix sets the Prefix field’s value.
15955 15956 15957 15958 |
// File 'service/s3/api.go', line 15955
|
func (s *LifecycleRuleAndOperator) SetTags(v []*Tag) *LifecycleRuleAndOperator
SetTags sets the Tags field’s value.
15961 15962 15963 15964 |
// File 'service/s3/api.go', line 15961
|
func (s LifecycleRuleAndOperator) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
15909 15910 15911 |
// File 'service/s3/api.go', line 15909
|
func (s *LifecycleRuleAndOperator) Validate() error
Validate inspects the fields of the type to determine if they are valid.
15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 |
// File 'service/s3/api.go', line 15923
|