Struct: s3.GetBucketLoggingInput

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 name for which to get the logging information.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



12379
12380
12381
// File 'service/s3/api.go', line 12379

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

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

SetBucket sets the Bucket field's value.



12400
12401
12402
12403
// File 'service/s3/api.go', line 12400

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



12413
12414
12415
12416
// File 'service/s3/api.go', line 12413

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

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



12370
12371
12372
// File 'service/s3/api.go', line 12370

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

func (s *GetBucketLoggingInput) Validate() error

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



12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
// File 'service/s3/api.go', line 12384

func (s *GetBucketLoggingInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetBucketLoggingInput"} 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 }