Struct: s3.DeleteBucketCorsInput

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"`

Specifies the bucket whose cors configuration is being deleted.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



9958
9959
9960
// File 'service/s3/api.go', line 9958

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

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

SetBucket sets the Bucket field's value.



9979
9980
9981
9982
// File 'service/s3/api.go', line 9979

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



9992
9993
9994
9995
// File 'service/s3/api.go', line 9992

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

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



9949
9950
9951
// File 'service/s3/api.go', line 9949

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

func (s *DeleteBucketCorsInput) Validate() error

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



9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
// File 'service/s3/api.go', line 9963

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