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



22665
22666
22667
// File 'service/s3/api.go', line 22665

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

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

SetTagSet sets the TagSet field’s value.



22693
22694
22695
22696
// File 'service/s3/api.go', line 22693

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



22656
22657
22658
// File 'service/s3/api.go', line 22656

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.



22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
// File 'service/s3/api.go', line 22670

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 }