Struct: s3.GetBucketWebsiteInput

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 website configuration.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



12926
12927
12928
// File 'service/s3/api.go', line 12926

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

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

SetBucket sets the Bucket field’s value.



12947
12948
12949
12950
// File 'service/s3/api.go', line 12947

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



12960
12961
12962
12963
// File 'service/s3/api.go', line 12960

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

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



12917
12918
12919
// File 'service/s3/api.go', line 12917

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

func (s *GetBucketWebsiteInput) Validate() error

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



12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
// File 'service/s3/api.go', line 12931

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