Struct: s3.DeleteBucketWebsiteInput

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 you want to remove 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:"DeleteBucketWebsiteRequest" type:"structure"`

Method Details

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



10457
10458
10459
// File 'service/s3/api.go', line 10457

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

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

SetBucket sets the Bucket field’s value.



10478
10479
10480
10481
// File 'service/s3/api.go', line 10478

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



10491
10492
10493
10494
// File 'service/s3/api.go', line 10491

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

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



10448
10449
10450
// File 'service/s3/api.go', line 10448

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

func (s *DeleteBucketWebsiteInput) Validate() error

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



10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
// File 'service/s3/api.go', line 10462

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