Struct: s3.ErrorDocument

import "../ibm-cos-sdk-go/service/s3"

Overview

The error information.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Key *string `min:"1" type:"string" required:"true"`

The object key name to use when a 4XX class error occurs.

Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints (docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).

Key is a required field

_ struct{} `type:"structure"`

Method Details

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



11923
11924
11925
// File 'service/s3/api.go', line 11923

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

func (s *ErrorDocument) SetKey(v string) *ErrorDocument

SetKey sets the Key field’s value.



11944
11945
11946
11947
// File 'service/s3/api.go', line 11944

func (s *ErrorDocument) SetKey(v string) *ErrorDocument { s.Key = &v return s }

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



11914
11915
11916
// File 'service/s3/api.go', line 11914

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

func (s *ErrorDocument) Validate() error

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



11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
// File 'service/s3/api.go', line 11928

func (s *ErrorDocument) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ErrorDocument"} if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }