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



22133
22134
22135
// File 'service/s3/api.go', line 22133

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

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

SetTagSet sets the TagSet field's value.



22161
22162
22163
22164
// File 'service/s3/api.go', line 22161

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



22124
22125
22126
// File 'service/s3/api.go', line 22124

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.



22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
// File 'service/s3/api.go', line 22138

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 }