Struct: s3.LifecycleRuleFilter

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

Overview

The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, or And specified.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Prefix *string `type:"string"`

Prefix identifying one or more objects to which the rule applies.

Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints (docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).

_ struct{} `type:"structure"`

Method Details

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



15728
15729
15730
// File 'service/s3/api.go', line 15728

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

func (s *LifecycleRuleFilter) SetPrefix(v string) *LifecycleRuleFilter

SetPrefix sets the Prefix field's value.



15733
15734
15735
15736
// File 'service/s3/api.go', line 15733

func (s *LifecycleRuleFilter) SetPrefix(v string) *LifecycleRuleFilter { s.Prefix = &v return s }

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



15719
15720
15721
// File 'service/s3/api.go', line 15719

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