Struct: s3.ObjectLockRule

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

Overview

The container element for an Object Lock rule.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

DefaultRetention *DefaultRetention `type:"structure"`

The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.

_ struct{} `type:"structure"`

Method Details

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



18194
18195
18196
// File 'service/s3/api.go', line 18194

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

func (s *ObjectLockRule) SetDefaultRetention(v *DefaultRetention) *ObjectLockRule

SetDefaultRetention sets the DefaultRetention field's value.



18199
18200
18201
18202
// File 'service/s3/api.go', line 18199

func (s *ObjectLockRule) SetDefaultRetention(v *DefaultRetention) *ObjectLockRule { s.DefaultRetention = v return s }

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



18185
18186
18187
// File 'service/s3/api.go', line 18185

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