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



12530
12531
12532
// File 'service/s3/api.go', line 12530

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

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

SetBucket sets the Bucket field’s value.



12551
12552
12553
12554
// File 'service/s3/api.go', line 12551

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.



12564
12565
12566
12567
// File 'service/s3/api.go', line 12564

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



12521
12522
12523
// File 'service/s3/api.go', line 12521

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.



12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
// File 'service/s3/api.go', line 12535

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 }