Struct: s3.ListLegalHoldsOutput

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

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`

LegalHolds []*LegalHold `type:"list"`

RetentionPeriod *int64 `type:"integer"`

Retention period to store on the object in seconds. The object can be neither overwritten nor deleted until the amount of time specified in the retention period has elapsed. 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.

RetentionPeriodExpirationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`

_ struct{} `type:"structure"`

Method Details

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



16048
16049
16050
// File 'service/s3/api.go', line 16048

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

func (s *ListLegalHoldsOutput) SetCreateTime(v time.Time) *ListLegalHoldsOutput

SetCreateTime sets the CreateTime field's value.



16053
16054
16055
16056
// File 'service/s3/api.go', line 16053

func (s *ListLegalHoldsOutput) SetCreateTime(v time.Time) *ListLegalHoldsOutput { s.CreateTime = &v return s }

func (s *ListLegalHoldsOutput) SetLegalHolds(v []*LegalHold) *ListLegalHoldsOutput

SetLegalHolds sets the LegalHolds field's value.



16059
16060
16061
16062
// File 'service/s3/api.go', line 16059

func (s *ListLegalHoldsOutput) SetLegalHolds(v []*LegalHold) *ListLegalHoldsOutput { s.LegalHolds = v return s }

func (s *ListLegalHoldsOutput) SetRetentionPeriod(v int64) *ListLegalHoldsOutput

SetRetentionPeriod sets the RetentionPeriod field's value.



16065
16066
16067
16068
// File 'service/s3/api.go', line 16065

func (s *ListLegalHoldsOutput) SetRetentionPeriod(v int64) *ListLegalHoldsOutput { s.RetentionPeriod = &v return s }

func (s *ListLegalHoldsOutput) SetRetentionPeriodExpirationDate(v time.Time) *ListLegalHoldsOutput

SetRetentionPeriodExpirationDate sets the RetentionPeriodExpirationDate field's value.



16071
16072
16073
16074
// File 'service/s3/api.go', line 16071

func (s *ListLegalHoldsOutput) SetRetentionPeriodExpirationDate(v time.Time) *ListLegalHoldsOutput { s.RetentionPeriodExpirationDate = &v return s }

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



16039
16040
16041
// File 'service/s3/api.go', line 16039

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