/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DatabaseMigrationService { namespace Model { /** *

Endpoint settings.

See Also:

AWS * API Reference

*/ class EndpointSetting { public: AWS_DATABASEMIGRATIONSERVICE_API EndpointSetting(); AWS_DATABASEMIGRATIONSERVICE_API EndpointSetting(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API EndpointSetting& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name that you want to give the endpoint settings.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name that you want to give the endpoint settings.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name that you want to give the endpoint settings.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name that you want to give the endpoint settings.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name that you want to give the endpoint settings.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name that you want to give the endpoint settings.

*/ inline EndpointSetting& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name that you want to give the endpoint settings.

*/ inline EndpointSetting& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name that you want to give the endpoint settings.

*/ inline EndpointSetting& WithName(const char* value) { SetName(value); return *this;} /** *

The type of endpoint. Valid values are source and * target.

*/ inline const EndpointSettingTypeValue& GetType() const{ return m_type; } /** *

The type of endpoint. Valid values are source and * target.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of endpoint. Valid values are source and * target.

*/ inline void SetType(const EndpointSettingTypeValue& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of endpoint. Valid values are source and * target.

*/ inline void SetType(EndpointSettingTypeValue&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of endpoint. Valid values are source and * target.

*/ inline EndpointSetting& WithType(const EndpointSettingTypeValue& value) { SetType(value); return *this;} /** *

The type of endpoint. Valid values are source and * target.

*/ inline EndpointSetting& WithType(EndpointSettingTypeValue&& value) { SetType(std::move(value)); return *this;} /** *

Enumerated values to use for this endpoint.

*/ inline const Aws::Vector& GetEnumValues() const{ return m_enumValues; } /** *

Enumerated values to use for this endpoint.

*/ inline bool EnumValuesHasBeenSet() const { return m_enumValuesHasBeenSet; } /** *

Enumerated values to use for this endpoint.

*/ inline void SetEnumValues(const Aws::Vector& value) { m_enumValuesHasBeenSet = true; m_enumValues = value; } /** *

Enumerated values to use for this endpoint.

*/ inline void SetEnumValues(Aws::Vector&& value) { m_enumValuesHasBeenSet = true; m_enumValues = std::move(value); } /** *

Enumerated values to use for this endpoint.

*/ inline EndpointSetting& WithEnumValues(const Aws::Vector& value) { SetEnumValues(value); return *this;} /** *

Enumerated values to use for this endpoint.

*/ inline EndpointSetting& WithEnumValues(Aws::Vector&& value) { SetEnumValues(std::move(value)); return *this;} /** *

Enumerated values to use for this endpoint.

*/ inline EndpointSetting& AddEnumValues(const Aws::String& value) { m_enumValuesHasBeenSet = true; m_enumValues.push_back(value); return *this; } /** *

Enumerated values to use for this endpoint.

*/ inline EndpointSetting& AddEnumValues(Aws::String&& value) { m_enumValuesHasBeenSet = true; m_enumValues.push_back(std::move(value)); return *this; } /** *

Enumerated values to use for this endpoint.

*/ inline EndpointSetting& AddEnumValues(const char* value) { m_enumValuesHasBeenSet = true; m_enumValues.push_back(value); return *this; } /** *

A value that marks this endpoint setting as sensitive.

*/ inline bool GetSensitive() const{ return m_sensitive; } /** *

A value that marks this endpoint setting as sensitive.

*/ inline bool SensitiveHasBeenSet() const { return m_sensitiveHasBeenSet; } /** *

A value that marks this endpoint setting as sensitive.

*/ inline void SetSensitive(bool value) { m_sensitiveHasBeenSet = true; m_sensitive = value; } /** *

A value that marks this endpoint setting as sensitive.

*/ inline EndpointSetting& WithSensitive(bool value) { SetSensitive(value); return *this;} /** *

The unit of measure for this endpoint setting.

*/ inline const Aws::String& GetUnits() const{ return m_units; } /** *

The unit of measure for this endpoint setting.

*/ inline bool UnitsHasBeenSet() const { return m_unitsHasBeenSet; } /** *

The unit of measure for this endpoint setting.

*/ inline void SetUnits(const Aws::String& value) { m_unitsHasBeenSet = true; m_units = value; } /** *

The unit of measure for this endpoint setting.

*/ inline void SetUnits(Aws::String&& value) { m_unitsHasBeenSet = true; m_units = std::move(value); } /** *

The unit of measure for this endpoint setting.

*/ inline void SetUnits(const char* value) { m_unitsHasBeenSet = true; m_units.assign(value); } /** *

The unit of measure for this endpoint setting.

*/ inline EndpointSetting& WithUnits(const Aws::String& value) { SetUnits(value); return *this;} /** *

The unit of measure for this endpoint setting.

*/ inline EndpointSetting& WithUnits(Aws::String&& value) { SetUnits(std::move(value)); return *this;} /** *

The unit of measure for this endpoint setting.

*/ inline EndpointSetting& WithUnits(const char* value) { SetUnits(value); return *this;} /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline const Aws::String& GetApplicability() const{ return m_applicability; } /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline bool ApplicabilityHasBeenSet() const { return m_applicabilityHasBeenSet; } /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline void SetApplicability(const Aws::String& value) { m_applicabilityHasBeenSet = true; m_applicability = value; } /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline void SetApplicability(Aws::String&& value) { m_applicabilityHasBeenSet = true; m_applicability = std::move(value); } /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline void SetApplicability(const char* value) { m_applicabilityHasBeenSet = true; m_applicability.assign(value); } /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline EndpointSetting& WithApplicability(const Aws::String& value) { SetApplicability(value); return *this;} /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline EndpointSetting& WithApplicability(Aws::String&& value) { SetApplicability(std::move(value)); return *this;} /** *

The relevance or validity of an endpoint setting for an engine name and its * endpoint type.

*/ inline EndpointSetting& WithApplicability(const char* value) { SetApplicability(value); return *this;} /** *

The minimum value of an endpoint setting that is of type * int.

*/ inline int GetIntValueMin() const{ return m_intValueMin; } /** *

The minimum value of an endpoint setting that is of type * int.

*/ inline bool IntValueMinHasBeenSet() const { return m_intValueMinHasBeenSet; } /** *

The minimum value of an endpoint setting that is of type * int.

*/ inline void SetIntValueMin(int value) { m_intValueMinHasBeenSet = true; m_intValueMin = value; } /** *

The minimum value of an endpoint setting that is of type * int.

*/ inline EndpointSetting& WithIntValueMin(int value) { SetIntValueMin(value); return *this;} /** *

The maximum value of an endpoint setting that is of type * int.

*/ inline int GetIntValueMax() const{ return m_intValueMax; } /** *

The maximum value of an endpoint setting that is of type * int.

*/ inline bool IntValueMaxHasBeenSet() const { return m_intValueMaxHasBeenSet; } /** *

The maximum value of an endpoint setting that is of type * int.

*/ inline void SetIntValueMax(int value) { m_intValueMaxHasBeenSet = true; m_intValueMax = value; } /** *

The maximum value of an endpoint setting that is of type * int.

*/ inline EndpointSetting& WithIntValueMax(int value) { SetIntValueMax(value); return *this;} /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline EndpointSetting& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline EndpointSetting& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

The default value of the endpoint setting if no value is specified using * CreateEndpoint or ModifyEndpoint.

*/ inline EndpointSetting& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; EndpointSettingTypeValue m_type; bool m_typeHasBeenSet = false; Aws::Vector m_enumValues; bool m_enumValuesHasBeenSet = false; bool m_sensitive; bool m_sensitiveHasBeenSet = false; Aws::String m_units; bool m_unitsHasBeenSet = false; Aws::String m_applicability; bool m_applicabilityHasBeenSet = false; int m_intValueMin; bool m_intValueMinHasBeenSet = false; int m_intValueMax; bool m_intValueMaxHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws