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”.
15767 15768 15769 |
// File 'service/s3/api.go', line 15767
|
func (s *LifecycleRuleAndOperator) SetObjectSizeGreaterThan(v int64) *LifecycleRuleAndOperator
SetObjectSizeGreaterThan sets the ObjectSizeGreaterThan field's value.
15792 15793 15794 15795 |
// File 'service/s3/api.go', line 15792
|
func (s *LifecycleRuleAndOperator) SetObjectSizeLessThan(v int64) *LifecycleRuleAndOperator
SetObjectSizeLessThan sets the ObjectSizeLessThan field's value.
15798 15799 15800 15801 |
// File 'service/s3/api.go', line 15798
|
func (s *LifecycleRuleAndOperator) SetPrefix(v string) *LifecycleRuleAndOperator
SetPrefix sets the Prefix field's value.
15804 15805 15806 15807 |
// File 'service/s3/api.go', line 15804
|
func (s *LifecycleRuleAndOperator) SetTags(v []*Tag) *LifecycleRuleAndOperator
SetTags sets the Tags field's value.
15810 15811 15812 15813 |
// File 'service/s3/api.go', line 15810
|
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”.
15758 15759 15760 |
// File 'service/s3/api.go', line 15758
|
func (s *LifecycleRuleAndOperator) Validate() error
Validate inspects the fields of the type to determine if they are valid.
15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 |
// File 'service/s3/api.go', line 15772
|