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”.



18431
18432
18433
// File 'service/s3/api.go', line 18431

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

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

SetDefaultRetention sets the DefaultRetention field's value.



18436
18437
18438
18439
// File 'service/s3/api.go', line 18436

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”.



18422
18423
18424
// File 'service/s3/api.go', line 18422

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