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”.



15767
15768
15769
// File 'service/s3/api.go', line 15767

func (s LifecycleRuleAndOperator) GoString() string { return s.String() }

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

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

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

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) 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”.



15758
15759
15760
// File 'service/s3/api.go', line 15758

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.



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

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 }