Struct: s3.LifecycleRuleAndOperator

import "../ibm-cos-sdk-go/service/s3"

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

Service Operations collapse

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) GoString() string { return s.String() }

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) SetObjectSizeGreaterThan(v int64) *LifecycleRuleAndOperator { s.ObjectSizeGreaterThan = &v return s }

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) SetObjectSizeLessThan(v int64) *LifecycleRuleAndOperator { s.ObjectSizeLessThan = &v return s }

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) SetPrefix(v string) *LifecycleRuleAndOperator { s.Prefix = &v return s }

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) SetTags(v []*Tag) *LifecycleRuleAndOperator { s.Tags = v return s }

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) String() string { return awsutil.Prettify(s) }

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

func (s *LifecycleRuleAndOperator) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleAndOperator"} if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil }