Struct: s3.GetObjectLegalHoldInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
The bucket name containing the object whose legal hold status you want to retrieve.
-
ExpectedBucketOwner *string
Ignored by COS.
-
Key *string
The key name for the object whose Legal Hold status you want to retrieve.
-
RequestPayer *string
Ignored by COS.
-
VersionId *string
The version ID of the object whose Legal Hold status you want to retrieve.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBucket(string) *GetObjectLegalHoldInput
operation
SetBucket sets the Bucket field’s value.
-
SetExpectedBucketOwner(string) *GetObjectLegalHoldInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
-
SetKey(string) *GetObjectLegalHoldInput
operation
SetKey sets the Key field’s value.
-
SetRequestPayer(string) *GetObjectLegalHoldInput
operation
SetRequestPayer sets the RequestPayer field’s value.
-
SetVersionId(string) *GetObjectLegalHoldInput
operation
SetVersionId sets the VersionId field’s value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
Bucket *string
`location:"uri" locationName:"Bucket" type:"string" required:"true"`
The bucket name containing the object whose legal hold status you want to retrieve.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points (docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the Amazon S3 User Guide.
Bucket is a required field
ExpectedBucketOwner *string
`location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
Ignored by COS.
Key *string
`location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
The key name for the object whose Legal Hold status you want to retrieve.
Key is a required field
RequestPayer *string
`location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
Ignored by COS.
VersionId *string
`location:"querystring" locationName:"versionId" type:"string"`
The version ID of the object whose Legal Hold status you want to retrieve.
_ struct{}
`locationName:"GetObjectLegalHoldRequest" type:"structure"`
Method Details
func (s GetObjectLegalHoldInput) 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”.
13518 13519 13520 |
// File 'service/s3/api.go', line 13518
|
func (s *GetObjectLegalHoldInput) SetBucket(v string) *GetObjectLegalHoldInput
SetBucket sets the Bucket field’s value.
13545 13546 13547 13548 |
// File 'service/s3/api.go', line 13545
|
func (s *GetObjectLegalHoldInput) SetExpectedBucketOwner(v string) *GetObjectLegalHoldInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
13558 13559 13560 13561 |
// File 'service/s3/api.go', line 13558
|
func (s *GetObjectLegalHoldInput) SetKey(v string) *GetObjectLegalHoldInput
SetKey sets the Key field’s value.
13564 13565 13566 13567 |
// File 'service/s3/api.go', line 13564
|
func (s *GetObjectLegalHoldInput) SetRequestPayer(v string) *GetObjectLegalHoldInput
SetRequestPayer sets the RequestPayer field’s value.
13570 13571 13572 13573 |
// File 'service/s3/api.go', line 13570
|
func (s *GetObjectLegalHoldInput) SetVersionId(v string) *GetObjectLegalHoldInput
SetVersionId sets the VersionId field’s value.
13576 13577 13578 13579 |
// File 'service/s3/api.go', line 13576
|
func (s GetObjectLegalHoldInput) 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”.
13509 13510 13511 |
// File 'service/s3/api.go', line 13509
|
func (s *GetObjectLegalHoldInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 |
// File 'service/s3/api.go', line 13523
|