Struct: s3.Tagging

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

Overview

Container for TagSet elements.

Implemented Interfaces

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

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`

A collection for a set of tags

TagSet is a required field

_ struct{} `type:"structure"`

Method Details

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



22661
22662
22663
// File 'service/s3/api.go', line 22661

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

func (s *Tagging) SetTagSet(v []*Tag) *Tagging

SetTagSet sets the TagSet field’s value.



22689
22690
22691
22692
// File 'service/s3/api.go', line 22689

func (s *Tagging) SetTagSet(v []*Tag) *Tagging { s.TagSet = v return s }

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



22652
22653
22654
// File 'service/s3/api.go', line 22652

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

func (s *Tagging) Validate() error

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



22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
// File 'service/s3/api.go', line 22666

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