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



21896
21897
21898
// File 'service/s3/api.go', line 21896

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

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

SetTagSet sets the TagSet field's value.



21924
21925
21926
21927
// File 'service/s3/api.go', line 21924

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



21887
21888
21889
// File 'service/s3/api.go', line 21887

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.



21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
// File 'service/s3/api.go', line 21901

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 }