Struct: s3.CompleteMultipartUploadInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
Name of the bucket to which the multipart upload was initiated.
-
ExpectedBucketOwner *string
Ignored by COS.
-
Key *string
Object key for which the multipart upload was initiated.
-
MultipartUpload *CompletedMultipartUpload
The container for the multipart upload request information.
-
RequestPayer *string
Confirms that the requester knows that they will be charged for the request.
-
RetentionExpirationDate *time.Time
Date on which it will be legal to delete or modify the object.
-
RetentionLegalHoldId *string
A single legal hold to apply to the object.
-
RetentionPeriod *int64
Retention period to store on the object in seconds.
-
UploadId *string
ID for the initiated multipart upload.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBucket(string) *CompleteMultipartUploadInput
operation
SetBucket sets the Bucket field's value.
-
SetExpectedBucketOwner(string) *CompleteMultipartUploadInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-
SetKey(string) *CompleteMultipartUploadInput
operation
SetKey sets the Key field's value.
-
SetMultipartUpload(*CompletedMultipartUpload) *CompleteMultipartUploadInput
operation
SetMultipartUpload sets the MultipartUpload field's value.
-
SetRequestPayer(string) *CompleteMultipartUploadInput
operation
SetRequestPayer sets the RequestPayer field's value.
-
SetRetentionExpirationDate(time.Time) *CompleteMultipartUploadInput
operation
SetRetentionExpirationDate sets the RetentionExpirationDate field's value.
-
SetRetentionLegalHoldId(string) *CompleteMultipartUploadInput
operation
SetRetentionLegalHoldId sets the RetentionLegalHoldId field's value.
-
SetRetentionPeriod(int64) *CompleteMultipartUploadInput
operation
SetRetentionPeriod sets the RetentionPeriod field's value.
-
SetUploadId(string) *CompleteMultipartUploadInput
operation
SetUploadId sets the UploadId 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"`
Name of the bucket to which the multipart upload was initiated.
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"`
Object key for which the multipart upload was initiated.
Key is a required field
MultipartUpload *CompletedMultipartUpload
`locationName:"CompleteMultipartUpload" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
The container for the multipart upload request information.
RequestPayer *string
`location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination Amazon S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets (docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 User Guide.
RetentionExpirationDate *time.Time
`location:"header" locationName:"Retention-Expiration-Date" type:"timestamp"`
Date on which it will be legal to delete or modify the object. This field can only be specified if Retention-Directive is REPLACE. You can only specify this or the Retention-Period header. If both are specified a 400 error will be returned. If neither is specified the bucket's DefaultRetention period will be used.
RetentionLegalHoldId *string
`location:"header" locationName:"Retention-Legal-Hold-ID" type:"string"`
A single legal hold to apply to the object. This field can only be specified if Retention-Directive is REPLACE. A legal hold is a character long string of max length 64. The object cannot be overwritten or deleted until all legal holds associated with the object are removed.
RetentionPeriod *int64
`location:"header" locationName:"Retention-Period" type:"integer"`
Retention period to store on the object in seconds. If this field and Retention-Expiration-Date are specified a 400 error is returned. If neither is specified the bucket's DefaultRetention period will be used. 0 is a legal value assuming the bucket's minimum retention period is also 0.
UploadId *string
`location:"querystring" locationName:"uploadId" type:"string" required:"true"`
ID for the initiated multipart upload.
UploadId is a required field
_ struct{}
`locationName:"CompleteMultipartUploadRequest" type:"structure" payload:"MultipartUpload"`
Method Details
func (s CompleteMultipartUploadInput) 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”.
7952 7953 7954 |
// File 'service/s3/api.go', line 7952
|
func (s *CompleteMultipartUploadInput) SetBucket(v string) *CompleteMultipartUploadInput
SetBucket sets the Bucket field's value.
7982 7983 7984 7985 |
// File 'service/s3/api.go', line 7982
|
func (s *CompleteMultipartUploadInput) SetExpectedBucketOwner(v string) *CompleteMultipartUploadInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
7995 7996 7997 7998 |
// File 'service/s3/api.go', line 7995
|
func (s *CompleteMultipartUploadInput) SetKey(v string) *CompleteMultipartUploadInput
SetKey sets the Key field's value.
8001 8002 8003 8004 |
// File 'service/s3/api.go', line 8001
|
func (s *CompleteMultipartUploadInput) SetMultipartUpload(v *CompletedMultipartUpload) *CompleteMultipartUploadInput
SetMultipartUpload sets the MultipartUpload field's value.
8007 8008 8009 8010 |
// File 'service/s3/api.go', line 8007
|
func (s *CompleteMultipartUploadInput) SetRequestPayer(v string) *CompleteMultipartUploadInput
SetRequestPayer sets the RequestPayer field's value.
8013 8014 8015 8016 |
// File 'service/s3/api.go', line 8013
|
func (s *CompleteMultipartUploadInput) SetRetentionExpirationDate(v time.Time) *CompleteMultipartUploadInput
SetRetentionExpirationDate sets the RetentionExpirationDate field's value.
8019 8020 8021 8022 |
// File 'service/s3/api.go', line 8019
|
func (s *CompleteMultipartUploadInput) SetRetentionLegalHoldId(v string) *CompleteMultipartUploadInput
SetRetentionLegalHoldId sets the RetentionLegalHoldId field's value.
8025 8026 8027 8028 |
// File 'service/s3/api.go', line 8025
|
func (s *CompleteMultipartUploadInput) SetRetentionPeriod(v int64) *CompleteMultipartUploadInput
SetRetentionPeriod sets the RetentionPeriod field's value.
8031 8032 8033 8034 |
// File 'service/s3/api.go', line 8031
|
func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput
SetUploadId sets the UploadId field's value.
8037 8038 8039 8040 |
// File 'service/s3/api.go', line 8037
|
func (s CompleteMultipartUploadInput) 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”.
7943 7944 7945 |
// File 'service/s3/api.go', line 7943
|
func (s *CompleteMultipartUploadInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 |
// File 'service/s3/api.go', line 7957
|