RoutingRuleCondition

Properties

NameTypeDescriptionNotes

HttpErrorCodeReturnedEquals

Pointer to string

The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied. Required when parent element `Condition` is specified and sibling `KeyPrefixEquals` is not specified. If both are specified, then both must be true for the redirect to be applied.

[optional]

KeyPrefixEquals

Pointer to string

<p>The object key name prefix when the redirect is applied. For example, to redirect requests for `ExamplePage.html`, the key prefix will be `ExamplePage.html`. To redirect request for all pages with the prefix `docs/`, the key prefix will be `/docs`, which identifies all objects in the `docs/` folder. Required when the parent element `Condition` is specified and sibling `HttpErrorCodeReturnedEquals` is not specified. If both conditions are specified, both must be true for the redirect to be applied.</p> <important> <p>Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.</p> </important>

[optional]

Methods

NewRoutingRuleCondition

func NewRoutingRuleCondition() *RoutingRuleCondition

NewRoutingRuleCondition instantiates a new RoutingRuleCondition 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

NewRoutingRuleConditionWithDefaults

func NewRoutingRuleConditionWithDefaults() *RoutingRuleCondition

NewRoutingRuleConditionWithDefaults instantiates a new RoutingRuleCondition 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

GetHttpErrorCodeReturnedEquals

func (o *RoutingRuleCondition) GetHttpErrorCodeReturnedEquals() string

GetHttpErrorCodeReturnedEquals returns the HttpErrorCodeReturnedEquals field if non-nil, zero value otherwise.

GetHttpErrorCodeReturnedEqualsOk

func (o *RoutingRuleCondition) GetHttpErrorCodeReturnedEqualsOk() (*string, bool)

GetHttpErrorCodeReturnedEqualsOk returns a tuple with the HttpErrorCodeReturnedEquals field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHttpErrorCodeReturnedEquals

func (o *RoutingRuleCondition) SetHttpErrorCodeReturnedEquals(v string)

SetHttpErrorCodeReturnedEquals sets HttpErrorCodeReturnedEquals field to given value.

HasHttpErrorCodeReturnedEquals

func (o *RoutingRuleCondition) HasHttpErrorCodeReturnedEquals() bool

HasHttpErrorCodeReturnedEquals returns a boolean if a field has been set.

GetKeyPrefixEquals

func (o *RoutingRuleCondition) GetKeyPrefixEquals() string

GetKeyPrefixEquals returns the KeyPrefixEquals field if non-nil, zero value otherwise.

GetKeyPrefixEqualsOk

func (o *RoutingRuleCondition) GetKeyPrefixEqualsOk() (*string, bool)

GetKeyPrefixEqualsOk returns a tuple with the KeyPrefixEquals field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKeyPrefixEquals

func (o *RoutingRuleCondition) SetKeyPrefixEquals(v string)

SetKeyPrefixEquals sets KeyPrefixEquals field to given value.

HasKeyPrefixEquals

func (o *RoutingRuleCondition) HasKeyPrefixEquals() bool

HasKeyPrefixEquals returns a boolean if a field has been set.

Last updated