/*
 * Ory Identities API
 *
 * This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more.
 *
 * API version:
 * Contact: office@ory.sh
 */

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package client

import (
	"encoding/json"
)

// ContinueWithSettingsUiFlow struct for ContinueWithSettingsUiFlow
type ContinueWithSettingsUiFlow struct {
	// The ID of the settings flow
	Id string `json:"id"`
	// The URL of the settings flow  If this value is set, redirect the user's browser to this URL. This value is typically unset for native clients / API flows.
	Url *string `json:"url,omitempty"`
}

// NewContinueWithSettingsUiFlow instantiates a new ContinueWithSettingsUiFlow 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 NewContinueWithSettingsUiFlow(id string) *ContinueWithSettingsUiFlow {
	this := ContinueWithSettingsUiFlow{}
	this.Id = id
	return &this
}

// NewContinueWithSettingsUiFlowWithDefaults instantiates a new ContinueWithSettingsUiFlow 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 NewContinueWithSettingsUiFlowWithDefaults() *ContinueWithSettingsUiFlow {
	this := ContinueWithSettingsUiFlow{}
	return &this
}

// GetId returns the Id field value
func (o *ContinueWithSettingsUiFlow) GetId() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Id
}

// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *ContinueWithSettingsUiFlow) GetIdOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Id, true
}

// SetId sets field value
func (o *ContinueWithSettingsUiFlow) SetId(v string) {
	o.Id = v
}

// GetUrl returns the Url field value if set, zero value otherwise.
func (o *ContinueWithSettingsUiFlow) GetUrl() string {
	if o == nil || o.Url == nil {
		var ret string
		return ret
	}
	return *o.Url
}

// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ContinueWithSettingsUiFlow) GetUrlOk() (*string, bool) {
	if o == nil || o.Url == nil {
		return nil, false
	}
	return o.Url, true
}

// HasUrl returns a boolean if a field has been set.
func (o *ContinueWithSettingsUiFlow) HasUrl() bool {
	if o != nil && o.Url != nil {
		return true
	}

	return false
}

// SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *ContinueWithSettingsUiFlow) SetUrl(v string) {
	o.Url = &v
}

func (o ContinueWithSettingsUiFlow) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["id"] = o.Id
	}
	if o.Url != nil {
		toSerialize["url"] = o.Url
	}
	return json.Marshal(toSerialize)
}

type NullableContinueWithSettingsUiFlow struct {
	value *ContinueWithSettingsUiFlow
	isSet bool
}

func (v NullableContinueWithSettingsUiFlow) Get() *ContinueWithSettingsUiFlow {
	return v.value
}

func (v *NullableContinueWithSettingsUiFlow) Set(val *ContinueWithSettingsUiFlow) {
	v.value = val
	v.isSet = true
}

func (v NullableContinueWithSettingsUiFlow) IsSet() bool {
	return v.isSet
}

func (v *NullableContinueWithSettingsUiFlow) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableContinueWithSettingsUiFlow(val *ContinueWithSettingsUiFlow) *NullableContinueWithSettingsUiFlow {
	return &NullableContinueWithSettingsUiFlow{value: val, isSet: true}
}

func (v NullableContinueWithSettingsUiFlow) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableContinueWithSettingsUiFlow) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}
