# RoutingRuleCondition

## Properties

| Name                            | Type                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Notes       |
| ------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| **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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/s3-sdk-golang/models/routingrulecondition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
