Struct: s3.DeleteLegalHoldInput

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

RetentionLegalHoldId *string `location:"querystring" locationName:"remove" type:"string" required:"true"`

RetentionLegalHoldId is a required field

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

Method Details

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



10545
10546
10547
// File 'service/s3/api.go', line 10545

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

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

SetBucket sets the Bucket field’s value.



10575
10576
10577
10578
// File 'service/s3/api.go', line 10575

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

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

SetKey sets the Key field’s value.



10588
10589
10590
10591
// File 'service/s3/api.go', line 10588

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

func (s *DeleteLegalHoldInput) SetRetentionLegalHoldId(v string) *DeleteLegalHoldInput

SetRetentionLegalHoldId sets the RetentionLegalHoldId field’s value.



10594
10595
10596
10597
// File 'service/s3/api.go', line 10594

func (s *DeleteLegalHoldInput) SetRetentionLegalHoldId(v string) *DeleteLegalHoldInput { s.RetentionLegalHoldId = &v return s }

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



10536
10537
10538
// File 'service/s3/api.go', line 10536

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

func (s *DeleteLegalHoldInput) Validate() error

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



10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
// File 'service/s3/api.go', line 10550

func (s *DeleteLegalHoldInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteLegalHoldInput"} 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 s.RetentionLegalHoldId == nil { invalidParams.Add(request.NewErrParamRequired("RetentionLegalHoldId")) } if invalidParams.Len() > 0 { return invalidParams } return nil }