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



16414
16415
16416
// File 'service/s3/api.go', line 16414

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

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

SetBucket sets the Bucket field’s value.



16441
16442
16443
16444
// File 'service/s3/api.go', line 16441

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.



16454
16455
16456
16457
// File 'service/s3/api.go', line 16454

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



16405
16406
16407
// File 'service/s3/api.go', line 16405

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.



16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
// File 'service/s3/api.go', line 16419

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 }