Struct: s3.ReplicationRuleAndOperator

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

Overview

A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter.

For example:

  • If you specify both a Prefix and a Tag filter, wrap these filters in an And tag.

  • If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Prefix *string `type:"string"`

An object key name prefix that identifies the subset of objects to which the rule applies.

Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"`

An array of tags containing key and value pairs.

_ struct{} `type:"structure"`

Method Details

func (s ReplicationRuleAndOperator) 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”.



21636
21637
21638
// File 'service/s3/api.go', line 21636

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

func (s *ReplicationRuleAndOperator) SetPrefix(v string) *ReplicationRuleAndOperator

SetPrefix sets the Prefix field's value.



21661
21662
21663
21664
// File 'service/s3/api.go', line 21661

func (s *ReplicationRuleAndOperator) SetPrefix(v string) *ReplicationRuleAndOperator { s.Prefix = &v return s }

func (s *ReplicationRuleAndOperator) SetTags(v []*Tag) *ReplicationRuleAndOperator

SetTags sets the Tags field's value.



21667
21668
21669
21670
// File 'service/s3/api.go', line 21667

func (s *ReplicationRuleAndOperator) SetTags(v []*Tag) *ReplicationRuleAndOperator { s.Tags = v return s }

func (s ReplicationRuleAndOperator) 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”.



21627
21628
21629
// File 'service/s3/api.go', line 21627

func (s ReplicationRuleAndOperator) String() string { return awsutil.Prettify(s) }

func (s *ReplicationRuleAndOperator) Validate() error

Validate inspects the fields of the type to determine if they are valid.



21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
// File 'service/s3/api.go', line 21641

func (s *ReplicationRuleAndOperator) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ReplicationRuleAndOperator"} 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 }