Name | Type | Description | Notes |
---|---|---|---|
IsTrailingSlashOptional | bool | Whether a trailing slash will be ignored. | |
RedirectStyle | int32 | The type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details here. | |
IsMatchQueryString | bool | Whether the `routePrefix` should match on the entire URL path, including the query string. | |
Created | Pointer to time.Time | [optional] | |
IsMatchFullUrl | bool | Whether the `routePrefix` should match on the entire URL, including the domain. | |
Destination | string | The destination URL, where the target URL should be redirected if it matches the `routePrefix`. | |
IsOnlyAfterNotFound | bool | Whether the URL redirect mapping should apply only if a live page on the URL isn't found. If False, the URL redirect mapping will take precedence over any existing page. | |
IsPattern | bool | Whether the `routePrefix` should match based on pattern. | |
Precedence | int32 | Used to prioritize URL redirection. If a given URL matches more than one redirect, the one with the lower precedence will be used. | |
RoutePrefix | string | The target incoming URL, path, or pattern to match for redirection. | |
IsProtocolAgnostic | bool | Whether the `routePrefix` should match both HTTP and HTTPS protocols. | |
Id | string | The unique ID of this URL redirect. | |
Updated | Pointer to time.Time | [optional] |
func NewUrlMapping(isTrailingSlashOptional bool, redirectStyle int32, isMatchQueryString bool, isMatchFullUrl bool, destination string, isOnlyAfterNotFound bool, isPattern bool, precedence int32, routePrefix string, isProtocolAgnostic bool, id string, ) *UrlMapping
NewUrlMapping instantiates a new UrlMapping 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 NewUrlMappingWithDefaults() *UrlMapping
NewUrlMappingWithDefaults instantiates a new UrlMapping 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 *UrlMapping) GetIsTrailingSlashOptional() bool
GetIsTrailingSlashOptional returns the IsTrailingSlashOptional field if non-nil, zero value otherwise.
func (o *UrlMapping) GetIsTrailingSlashOptionalOk() (*bool, bool)
GetIsTrailingSlashOptionalOk returns a tuple with the IsTrailingSlashOptional field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetIsTrailingSlashOptional(v bool)
SetIsTrailingSlashOptional sets IsTrailingSlashOptional field to given value.
func (o *UrlMapping) GetRedirectStyle() int32
GetRedirectStyle returns the RedirectStyle field if non-nil, zero value otherwise.
func (o *UrlMapping) GetRedirectStyleOk() (*int32, bool)
GetRedirectStyleOk returns a tuple with the RedirectStyle field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetRedirectStyle(v int32)
SetRedirectStyle sets RedirectStyle field to given value.
func (o *UrlMapping) GetIsMatchQueryString() bool
GetIsMatchQueryString returns the IsMatchQueryString field if non-nil, zero value otherwise.
func (o *UrlMapping) GetIsMatchQueryStringOk() (*bool, bool)
GetIsMatchQueryStringOk returns a tuple with the IsMatchQueryString field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetIsMatchQueryString(v bool)
SetIsMatchQueryString sets IsMatchQueryString field to given value.
func (o *UrlMapping) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *UrlMapping) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetCreated(v time.Time)
SetCreated sets Created field to given value.
func (o *UrlMapping) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *UrlMapping) GetIsMatchFullUrl() bool
GetIsMatchFullUrl returns the IsMatchFullUrl field if non-nil, zero value otherwise.
func (o *UrlMapping) GetIsMatchFullUrlOk() (*bool, bool)
GetIsMatchFullUrlOk returns a tuple with the IsMatchFullUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetIsMatchFullUrl(v bool)
SetIsMatchFullUrl sets IsMatchFullUrl field to given value.
func (o *UrlMapping) GetDestination() string
GetDestination returns the Destination field if non-nil, zero value otherwise.
func (o *UrlMapping) GetDestinationOk() (*string, bool)
GetDestinationOk returns a tuple with the Destination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetDestination(v string)
SetDestination sets Destination field to given value.
func (o *UrlMapping) GetIsOnlyAfterNotFound() bool
GetIsOnlyAfterNotFound returns the IsOnlyAfterNotFound field if non-nil, zero value otherwise.
func (o *UrlMapping) GetIsOnlyAfterNotFoundOk() (*bool, bool)
GetIsOnlyAfterNotFoundOk returns a tuple with the IsOnlyAfterNotFound field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetIsOnlyAfterNotFound(v bool)
SetIsOnlyAfterNotFound sets IsOnlyAfterNotFound field to given value.
func (o *UrlMapping) GetIsPattern() bool
GetIsPattern returns the IsPattern field if non-nil, zero value otherwise.
func (o *UrlMapping) GetIsPatternOk() (*bool, bool)
GetIsPatternOk returns a tuple with the IsPattern field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetIsPattern(v bool)
SetIsPattern sets IsPattern field to given value.
func (o *UrlMapping) GetPrecedence() int32
GetPrecedence returns the Precedence field if non-nil, zero value otherwise.
func (o *UrlMapping) GetPrecedenceOk() (*int32, bool)
GetPrecedenceOk returns a tuple with the Precedence field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetPrecedence(v int32)
SetPrecedence sets Precedence field to given value.
func (o *UrlMapping) GetRoutePrefix() string
GetRoutePrefix returns the RoutePrefix field if non-nil, zero value otherwise.
func (o *UrlMapping) GetRoutePrefixOk() (*string, bool)
GetRoutePrefixOk returns a tuple with the RoutePrefix field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetRoutePrefix(v string)
SetRoutePrefix sets RoutePrefix field to given value.
func (o *UrlMapping) GetIsProtocolAgnostic() bool
GetIsProtocolAgnostic returns the IsProtocolAgnostic field if non-nil, zero value otherwise.
func (o *UrlMapping) GetIsProtocolAgnosticOk() (*bool, bool)
GetIsProtocolAgnosticOk returns a tuple with the IsProtocolAgnostic field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetIsProtocolAgnostic(v bool)
SetIsProtocolAgnostic sets IsProtocolAgnostic field to given value.
func (o *UrlMapping) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *UrlMapping) 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 *UrlMapping) SetId(v string)
SetId sets Id field to given value.
func (o *UrlMapping) GetUpdated() time.Time
GetUpdated returns the Updated field if non-nil, zero value otherwise.
func (o *UrlMapping) GetUpdatedOk() (*time.Time, bool)
GetUpdatedOk returns a tuple with the Updated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UrlMapping) SetUpdated(v time.Time)
SetUpdated sets Updated field to given value.
func (o *UrlMapping) HasUpdated() bool
HasUpdated returns a boolean if a field has been set.