Struct: s3.GetObjectLockConfigurationInput

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"`

The bucket whose Object Lock configuration you want to retrieve.

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points (docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the Amazon S3 User Guide.

Bucket is a required field

ExpectedBucketOwner *string `location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`

Ignored by COS.

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

Method Details

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



13494
13495
13496
// File 'service/s3/api.go', line 13494

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

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

SetBucket sets the Bucket field's value.



13515
13516
13517
13518
// File 'service/s3/api.go', line 13515

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

func (s *GetObjectLockConfigurationInput) SetExpectedBucketOwner(v string) *GetObjectLockConfigurationInput

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



13528
13529
13530
13531
// File 'service/s3/api.go', line 13528

func (s *GetObjectLockConfigurationInput) SetExpectedBucketOwner(v string) *GetObjectLockConfigurationInput { s.ExpectedBucketOwner = &v return s }

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



13485
13486
13487
// File 'service/s3/api.go', line 13485

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

func (s *GetObjectLockConfigurationInput) Validate() error

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



13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
// File 'service/s3/api.go', line 13499

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