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



10306
10307
10308
// File 'service/s3/api.go', line 10306

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

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

SetBucket sets the Bucket field's value.



10327
10328
10329
10330
// File 'service/s3/api.go', line 10327

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.



10340
10341
10342
10343
// File 'service/s3/api.go', line 10340

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



10297
10298
10299
// File 'service/s3/api.go', line 10297

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.



10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
// File 'service/s3/api.go', line 10311

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 }