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



15971
15972
15973
// File 'service/s3/api.go', line 15971

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

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

SetBucket sets the Bucket field's value.



15998
15999
16000
16001
// File 'service/s3/api.go', line 15998

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.



16011
16012
16013
16014
// File 'service/s3/api.go', line 16011

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



15962
15963
15964
// File 'service/s3/api.go', line 15962

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.



15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
// File 'service/s3/api.go', line 15976

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 }