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

An object that contains response data from a property definition * request.

See Also:

AWS * API Reference

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

An object that contains information about the data type.

*/ inline const DataType& GetDataType() const{ return m_dataType; } /** *

An object that contains information about the data type.

*/ inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; } /** *

An object that contains information about the data type.

*/ inline void SetDataType(const DataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; } /** *

An object that contains information about the data type.

*/ inline void SetDataType(DataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); } /** *

An object that contains information about the data type.

*/ inline PropertyDefinitionResponse& WithDataType(const DataType& value) { SetDataType(value); return *this;} /** *

An object that contains information about the data type.

*/ inline PropertyDefinitionResponse& WithDataType(DataType&& value) { SetDataType(std::move(value)); return *this;} /** *

A Boolean value that specifies whether the property consists of time series * data.

*/ inline bool GetIsTimeSeries() const{ return m_isTimeSeries; } /** *

A Boolean value that specifies whether the property consists of time series * data.

*/ inline bool IsTimeSeriesHasBeenSet() const { return m_isTimeSeriesHasBeenSet; } /** *

A Boolean value that specifies whether the property consists of time series * data.

*/ inline void SetIsTimeSeries(bool value) { m_isTimeSeriesHasBeenSet = true; m_isTimeSeries = value; } /** *

A Boolean value that specifies whether the property consists of time series * data.

*/ inline PropertyDefinitionResponse& WithIsTimeSeries(bool value) { SetIsTimeSeries(value); return *this;} /** *

A Boolean value that specifies whether the property is required in an * entity.

*/ inline bool GetIsRequiredInEntity() const{ return m_isRequiredInEntity; } /** *

A Boolean value that specifies whether the property is required in an * entity.

*/ inline bool IsRequiredInEntityHasBeenSet() const { return m_isRequiredInEntityHasBeenSet; } /** *

A Boolean value that specifies whether the property is required in an * entity.

*/ inline void SetIsRequiredInEntity(bool value) { m_isRequiredInEntityHasBeenSet = true; m_isRequiredInEntity = value; } /** *

A Boolean value that specifies whether the property is required in an * entity.

*/ inline PropertyDefinitionResponse& WithIsRequiredInEntity(bool value) { SetIsRequiredInEntity(value); return *this;} /** *

A Boolean value that specifies whether the property ID comes from an external * data store.

*/ inline bool GetIsExternalId() const{ return m_isExternalId; } /** *

A Boolean value that specifies whether the property ID comes from an external * data store.

*/ inline bool IsExternalIdHasBeenSet() const { return m_isExternalIdHasBeenSet; } /** *

A Boolean value that specifies whether the property ID comes from an external * data store.

*/ inline void SetIsExternalId(bool value) { m_isExternalIdHasBeenSet = true; m_isExternalId = value; } /** *

A Boolean value that specifies whether the property ID comes from an external * data store.

*/ inline PropertyDefinitionResponse& WithIsExternalId(bool value) { SetIsExternalId(value); return *this;} /** *

A Boolean value that specifies whether the property is stored externally.

*/ inline bool GetIsStoredExternally() const{ return m_isStoredExternally; } /** *

A Boolean value that specifies whether the property is stored externally.

*/ inline bool IsStoredExternallyHasBeenSet() const { return m_isStoredExternallyHasBeenSet; } /** *

A Boolean value that specifies whether the property is stored externally.

*/ inline void SetIsStoredExternally(bool value) { m_isStoredExternallyHasBeenSet = true; m_isStoredExternally = value; } /** *

A Boolean value that specifies whether the property is stored externally.

*/ inline PropertyDefinitionResponse& WithIsStoredExternally(bool value) { SetIsStoredExternally(value); return *this;} /** *

A Boolean value that specifies whether the property definition is imported * from an external data store.

*/ inline bool GetIsImported() const{ return m_isImported; } /** *

A Boolean value that specifies whether the property definition is imported * from an external data store.

*/ inline bool IsImportedHasBeenSet() const { return m_isImportedHasBeenSet; } /** *

A Boolean value that specifies whether the property definition is imported * from an external data store.

*/ inline void SetIsImported(bool value) { m_isImportedHasBeenSet = true; m_isImported = value; } /** *

A Boolean value that specifies whether the property definition is imported * from an external data store.

*/ inline PropertyDefinitionResponse& WithIsImported(bool value) { SetIsImported(value); return *this;} /** *

A Boolean value that specifies whether the property definition can be * updated.

*/ inline bool GetIsFinal() const{ return m_isFinal; } /** *

A Boolean value that specifies whether the property definition can be * updated.

*/ inline bool IsFinalHasBeenSet() const { return m_isFinalHasBeenSet; } /** *

A Boolean value that specifies whether the property definition can be * updated.

*/ inline void SetIsFinal(bool value) { m_isFinalHasBeenSet = true; m_isFinal = value; } /** *

A Boolean value that specifies whether the property definition can be * updated.

*/ inline PropertyDefinitionResponse& WithIsFinal(bool value) { SetIsFinal(value); return *this;} /** *

A Boolean value that specifies whether the property definition is inherited * from a parent entity.

*/ inline bool GetIsInherited() const{ return m_isInherited; } /** *

A Boolean value that specifies whether the property definition is inherited * from a parent entity.

*/ inline bool IsInheritedHasBeenSet() const { return m_isInheritedHasBeenSet; } /** *

A Boolean value that specifies whether the property definition is inherited * from a parent entity.

*/ inline void SetIsInherited(bool value) { m_isInheritedHasBeenSet = true; m_isInherited = value; } /** *

A Boolean value that specifies whether the property definition is inherited * from a parent entity.

*/ inline PropertyDefinitionResponse& WithIsInherited(bool value) { SetIsInherited(value); return *this;} /** *

An object that contains the default value.

*/ inline const DataValue& GetDefaultValue() const{ return m_defaultValue; } /** *

An object that contains the default value.

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

An object that contains the default value.

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

An object that contains the default value.

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

An object that contains the default value.

*/ inline PropertyDefinitionResponse& WithDefaultValue(const DataValue& value) { SetDefaultValue(value); return *this;} /** *

An object that contains the default value.

*/ inline PropertyDefinitionResponse& WithDefaultValue(DataValue&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

A mapping that specifies configuration information about the property.

*/ inline const Aws::Map& GetConfiguration() const{ return m_configuration; } /** *

A mapping that specifies configuration information about the property.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

A mapping that specifies configuration information about the property.

*/ inline void SetConfiguration(const Aws::Map& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

A mapping that specifies configuration information about the property.

*/ inline void SetConfiguration(Aws::Map&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& WithConfiguration(const Aws::Map& value) { SetConfiguration(value); return *this;} /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& WithConfiguration(Aws::Map&& value) { SetConfiguration(std::move(value)); return *this;} /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; } /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; } /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; } /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; } /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; } /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; } /** *

A mapping that specifies configuration information about the property.

*/ inline PropertyDefinitionResponse& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; } /** *

A friendly name for the property.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

A friendly name for the property.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

A friendly name for the property.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

A friendly name for the property.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

A friendly name for the property.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

A friendly name for the property.

*/ inline PropertyDefinitionResponse& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

A friendly name for the property.

*/ inline PropertyDefinitionResponse& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

A friendly name for the property.

*/ inline PropertyDefinitionResponse& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} private: DataType m_dataType; bool m_dataTypeHasBeenSet = false; bool m_isTimeSeries; bool m_isTimeSeriesHasBeenSet = false; bool m_isRequiredInEntity; bool m_isRequiredInEntityHasBeenSet = false; bool m_isExternalId; bool m_isExternalIdHasBeenSet = false; bool m_isStoredExternally; bool m_isStoredExternallyHasBeenSet = false; bool m_isImported; bool m_isImportedHasBeenSet = false; bool m_isFinal; bool m_isFinalHasBeenSet = false; bool m_isInherited; bool m_isInheritedHasBeenSet = false; DataValue m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::Map m_configuration; bool m_configurationHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws