Struct: s3.DefaultRetention
Overview
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
-
The DefaultRetention settings require both a mode and a period.
-
The DefaultRetention period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Days *int64
The number of days that you want to specify for the default retention period.
-
Mode *string
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
-
Years *int64
The number of years that you want to specify for the default retention period.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetDays(int64) *DefaultRetention
operation
SetDays sets the Days field's value.
-
SetMode(string) *DefaultRetention
operation
SetMode sets the Mode field's value.
-
SetYears(int64) *DefaultRetention
operation
SetYears sets the Years field's value.
-
String() string
operation
String returns the string representation.
Structure Field Details
Days *int64
`type:"integer"`
The number of days that you want to specify for the default retention period. Must be used with Mode.
Mode *string
`type:"string" enum:"ObjectLockRetentionMode"`
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days or Years.
Years *int64
`type:"integer"`
The number of years that you want to specify for the default retention period. Must be used with Mode.
_ struct{}
`type:"structure"`
Method Details
func (s DefaultRetention) 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”.
9843 9844 9845 |
// File 'service/s3/api.go', line 9843
|
func (s *DefaultRetention) SetDays(v int64) *DefaultRetention
SetDays sets the Days field's value.
9848 9849 9850 9851 |
// File 'service/s3/api.go', line 9848
|
func (s *DefaultRetention) SetMode(v string) *DefaultRetention
SetMode sets the Mode field's value.
9854 9855 9856 9857 |
// File 'service/s3/api.go', line 9854
|
func (s *DefaultRetention) SetYears(v int64) *DefaultRetention
SetYears sets the Years field's value.
9860 9861 9862 9863 |
// File 'service/s3/api.go', line 9860
|
func (s DefaultRetention) 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”.
9834 9835 9836 |
// File 'service/s3/api.go', line 9834
|