Struct: s3.ListLegalHoldsInput

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

Implemented Interfaces

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

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`

Bucket is a required field

Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`

Key is a required field

_ struct{} `locationName:"ListLegalHoldsRequest" type:"structure"`

Method Details

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



16141
16142
16143
// File 'service/s3/api.go', line 16141

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

func (s *ListLegalHoldsInput) SetBucket(v string) *ListLegalHoldsInput

SetBucket sets the Bucket field's value.



16168
16169
16170
16171
// File 'service/s3/api.go', line 16168

func (s *ListLegalHoldsInput) SetBucket(v string) *ListLegalHoldsInput { s.Bucket = &v return s }

func (s *ListLegalHoldsInput) SetKey(v string) *ListLegalHoldsInput

SetKey sets the Key field's value.



16181
16182
16183
16184
// File 'service/s3/api.go', line 16181

func (s *ListLegalHoldsInput) SetKey(v string) *ListLegalHoldsInput { s.Key = &v return s }

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



16132
16133
16134
// File 'service/s3/api.go', line 16132

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

func (s *ListLegalHoldsInput) Validate() error

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



16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
// File 'service/s3/api.go', line 16146

func (s *ListLegalHoldsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListLegalHoldsInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 1 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }