Name | Type | Description | Notes |
---|---|---|---|
ID | Pointer to string | Unique identifier for the rule. The value can't be longer than 255 characters. | [optional] |
Prefix | string | Object key prefix that identifies one or more objects to which this rule applies. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. | |
Status | ExpirationStatus | ||
Expiration | Pointer to LifecycleExpiration | [optional] | |
NoncurrentVersionExpiration | Pointer to NoncurrentVersionExpiration | [optional] | |
AbortIncompleteMultipartUpload | Pointer to AbortIncompleteMultipartUpload | [optional] |
func NewRule(prefix string, status ExpirationStatus, ) *Rule
NewRule instantiates a new Rule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRuleWithDefaults() *Rule
NewRuleWithDefaults instantiates a new Rule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Rule) GetID() string
GetID returns the ID field if non-nil, zero value otherwise.
func (o *Rule) GetIDOk() (*string, bool)
GetIDOk returns a tuple with the ID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetID(v string)
SetID sets ID field to given value.
func (o *Rule) HasID() bool
HasID returns a boolean if a field has been set.
func (o *Rule) GetPrefix() string
GetPrefix returns the Prefix field if non-nil, zero value otherwise.
func (o *Rule) GetPrefixOk() (*string, bool)
GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetPrefix(v string)
SetPrefix sets Prefix field to given value.
func (o *Rule) GetStatus() ExpirationStatus
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *Rule) GetStatusOk() (*ExpirationStatus, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetStatus(v ExpirationStatus)
SetStatus sets Status field to given value.
func (o *Rule) GetExpiration() LifecycleExpiration
GetExpiration returns the Expiration field if non-nil, zero value otherwise.
func (o *Rule) GetExpirationOk() (*LifecycleExpiration, bool)
GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetExpiration(v LifecycleExpiration)
SetExpiration sets Expiration field to given value.
func (o *Rule) HasExpiration() bool
HasExpiration returns a boolean if a field has been set.
func (o *Rule) GetNoncurrentVersionExpiration() NoncurrentVersionExpiration
GetNoncurrentVersionExpiration returns the NoncurrentVersionExpiration field if non-nil, zero value otherwise.
func (o *Rule) GetNoncurrentVersionExpirationOk() (*NoncurrentVersionExpiration, bool)
GetNoncurrentVersionExpirationOk returns a tuple with the NoncurrentVersionExpiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetNoncurrentVersionExpiration(v NoncurrentVersionExpiration)
SetNoncurrentVersionExpiration sets NoncurrentVersionExpiration field to given value.
func (o *Rule) HasNoncurrentVersionExpiration() bool
HasNoncurrentVersionExpiration returns a boolean if a field has been set.
func (o *Rule) GetAbortIncompleteMultipartUpload() AbortIncompleteMultipartUpload
GetAbortIncompleteMultipartUpload returns the AbortIncompleteMultipartUpload field if non-nil, zero value otherwise.
func (o *Rule) GetAbortIncompleteMultipartUploadOk() (*AbortIncompleteMultipartUpload, bool)
GetAbortIncompleteMultipartUploadOk returns a tuple with the AbortIncompleteMultipartUpload field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetAbortIncompleteMultipartUpload(v AbortIncompleteMultipartUpload)
SetAbortIncompleteMultipartUpload sets AbortIncompleteMultipartUpload field to given value.
func (o *Rule) HasAbortIncompleteMultipartUpload() bool
HasAbortIncompleteMultipartUpload returns a boolean if a field has been set.