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

Describes the data model of a connector field. For example, for an * account entity, the fields would be account name, account * ID, and so on.

See Also:

AWS * API Reference

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

The unique identifier of the connector field.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

The unique identifier of the connector field.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

The unique identifier of the connector field.

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

The unique identifier of the connector field.

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

The unique identifier of the connector field.

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

The unique identifier of the connector field.

*/ inline ConnectorEntityField& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

The unique identifier of the connector field.

*/ inline ConnectorEntityField& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

The unique identifier of the connector field.

*/ inline ConnectorEntityField& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} /** *

The parent identifier of the connector field.

*/ inline const Aws::String& GetParentIdentifier() const{ return m_parentIdentifier; } /** *

The parent identifier of the connector field.

*/ inline bool ParentIdentifierHasBeenSet() const { return m_parentIdentifierHasBeenSet; } /** *

The parent identifier of the connector field.

*/ inline void SetParentIdentifier(const Aws::String& value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier = value; } /** *

The parent identifier of the connector field.

*/ inline void SetParentIdentifier(Aws::String&& value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier = std::move(value); } /** *

The parent identifier of the connector field.

*/ inline void SetParentIdentifier(const char* value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier.assign(value); } /** *

The parent identifier of the connector field.

*/ inline ConnectorEntityField& WithParentIdentifier(const Aws::String& value) { SetParentIdentifier(value); return *this;} /** *

The parent identifier of the connector field.

*/ inline ConnectorEntityField& WithParentIdentifier(Aws::String&& value) { SetParentIdentifier(std::move(value)); return *this;} /** *

The parent identifier of the connector field.

*/ inline ConnectorEntityField& WithParentIdentifier(const char* value) { SetParentIdentifier(value); return *this;} /** *

The label applied to a connector entity field.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The label applied to a connector entity field.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The label applied to a connector entity field.

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The label applied to a connector entity field.

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The label applied to a connector entity field.

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The label applied to a connector entity field.

*/ inline ConnectorEntityField& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The label applied to a connector entity field.

*/ inline ConnectorEntityField& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The label applied to a connector entity field.

*/ inline ConnectorEntityField& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

Booelan value that indicates whether this field can be used as a primary * key.

*/ inline bool GetIsPrimaryKey() const{ return m_isPrimaryKey; } /** *

Booelan value that indicates whether this field can be used as a primary * key.

*/ inline bool IsPrimaryKeyHasBeenSet() const { return m_isPrimaryKeyHasBeenSet; } /** *

Booelan value that indicates whether this field can be used as a primary * key.

*/ inline void SetIsPrimaryKey(bool value) { m_isPrimaryKeyHasBeenSet = true; m_isPrimaryKey = value; } /** *

Booelan value that indicates whether this field can be used as a primary * key.

*/ inline ConnectorEntityField& WithIsPrimaryKey(bool value) { SetIsPrimaryKey(value); return *this;} /** *

Default value that can be assigned to this field.

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

Default value that can be assigned to this field.

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

Default value that can be assigned to this field.

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

Default value that can be assigned to this field.

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

Default value that can be assigned to this field.

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

Default value that can be assigned to this field.

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

Default value that can be assigned to this field.

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

Default value that can be assigned to this field.

*/ inline ConnectorEntityField& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} /** *

Booelan value that indicates whether this field is deprecated or not.

*/ inline bool GetIsDeprecated() const{ return m_isDeprecated; } /** *

Booelan value that indicates whether this field is deprecated or not.

*/ inline bool IsDeprecatedHasBeenSet() const { return m_isDeprecatedHasBeenSet; } /** *

Booelan value that indicates whether this field is deprecated or not.

*/ inline void SetIsDeprecated(bool value) { m_isDeprecatedHasBeenSet = true; m_isDeprecated = value; } /** *

Booelan value that indicates whether this field is deprecated or not.

*/ inline ConnectorEntityField& WithIsDeprecated(bool value) { SetIsDeprecated(value); return *this;} /** *

Contains details regarding the supported FieldType, including * the corresponding filterOperators and supportedValues. *

*/ inline const SupportedFieldTypeDetails& GetSupportedFieldTypeDetails() const{ return m_supportedFieldTypeDetails; } /** *

Contains details regarding the supported FieldType, including * the corresponding filterOperators and supportedValues. *

*/ inline bool SupportedFieldTypeDetailsHasBeenSet() const { return m_supportedFieldTypeDetailsHasBeenSet; } /** *

Contains details regarding the supported FieldType, including * the corresponding filterOperators and supportedValues. *

*/ inline void SetSupportedFieldTypeDetails(const SupportedFieldTypeDetails& value) { m_supportedFieldTypeDetailsHasBeenSet = true; m_supportedFieldTypeDetails = value; } /** *

Contains details regarding the supported FieldType, including * the corresponding filterOperators and supportedValues. *

*/ inline void SetSupportedFieldTypeDetails(SupportedFieldTypeDetails&& value) { m_supportedFieldTypeDetailsHasBeenSet = true; m_supportedFieldTypeDetails = std::move(value); } /** *

Contains details regarding the supported FieldType, including * the corresponding filterOperators and supportedValues. *

*/ inline ConnectorEntityField& WithSupportedFieldTypeDetails(const SupportedFieldTypeDetails& value) { SetSupportedFieldTypeDetails(value); return *this;} /** *

Contains details regarding the supported FieldType, including * the corresponding filterOperators and supportedValues. *

*/ inline ConnectorEntityField& WithSupportedFieldTypeDetails(SupportedFieldTypeDetails&& value) { SetSupportedFieldTypeDetails(std::move(value)); return *this;} /** *

A description of the connector entity field.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the connector entity field.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the connector entity field.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the connector entity field.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the connector entity field.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the connector entity field.

*/ inline ConnectorEntityField& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the connector entity field.

*/ inline ConnectorEntityField& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the connector entity field.

*/ inline ConnectorEntityField& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The properties that can be applied to a field when the connector is being * used as a source.

*/ inline const SourceFieldProperties& GetSourceProperties() const{ return m_sourceProperties; } /** *

The properties that can be applied to a field when the connector is being * used as a source.

*/ inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; } /** *

The properties that can be applied to a field when the connector is being * used as a source.

*/ inline void SetSourceProperties(const SourceFieldProperties& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = value; } /** *

The properties that can be applied to a field when the connector is being * used as a source.

*/ inline void SetSourceProperties(SourceFieldProperties&& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = std::move(value); } /** *

The properties that can be applied to a field when the connector is being * used as a source.

*/ inline ConnectorEntityField& WithSourceProperties(const SourceFieldProperties& value) { SetSourceProperties(value); return *this;} /** *

The properties that can be applied to a field when the connector is being * used as a source.

*/ inline ConnectorEntityField& WithSourceProperties(SourceFieldProperties&& value) { SetSourceProperties(std::move(value)); return *this;} /** *

The properties applied to a field when the connector is being used as a * destination.

*/ inline const DestinationFieldProperties& GetDestinationProperties() const{ return m_destinationProperties; } /** *

The properties applied to a field when the connector is being used as a * destination.

*/ inline bool DestinationPropertiesHasBeenSet() const { return m_destinationPropertiesHasBeenSet; } /** *

The properties applied to a field when the connector is being used as a * destination.

*/ inline void SetDestinationProperties(const DestinationFieldProperties& value) { m_destinationPropertiesHasBeenSet = true; m_destinationProperties = value; } /** *

The properties applied to a field when the connector is being used as a * destination.

*/ inline void SetDestinationProperties(DestinationFieldProperties&& value) { m_destinationPropertiesHasBeenSet = true; m_destinationProperties = std::move(value); } /** *

The properties applied to a field when the connector is being used as a * destination.

*/ inline ConnectorEntityField& WithDestinationProperties(const DestinationFieldProperties& value) { SetDestinationProperties(value); return *this;} /** *

The properties applied to a field when the connector is being used as a * destination.

*/ inline ConnectorEntityField& WithDestinationProperties(DestinationFieldProperties&& value) { SetDestinationProperties(std::move(value)); return *this;} /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline const Aws::Map& GetCustomProperties() const{ return m_customProperties; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline bool CustomPropertiesHasBeenSet() const { return m_customPropertiesHasBeenSet; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline void SetCustomProperties(const Aws::Map& value) { m_customPropertiesHasBeenSet = true; m_customProperties = value; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline void SetCustomProperties(Aws::Map&& value) { m_customPropertiesHasBeenSet = true; m_customProperties = std::move(value); } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& WithCustomProperties(const Aws::Map& value) { SetCustomProperties(value); return *this;} /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& WithCustomProperties(Aws::Map&& value) { SetCustomProperties(std::move(value)); return *this;} /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& AddCustomProperties(const Aws::String& key, const Aws::String& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, value); return *this; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& AddCustomProperties(Aws::String&& key, const Aws::String& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::move(key), value); return *this; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& AddCustomProperties(const Aws::String& key, Aws::String&& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, std::move(value)); return *this; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& AddCustomProperties(Aws::String&& key, Aws::String&& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& AddCustomProperties(const char* key, Aws::String&& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, std::move(value)); return *this; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& AddCustomProperties(Aws::String&& key, const char* value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::move(key), value); return *this; } /** *

A map that has specific properties related to the ConnectorEntityField.

*/ inline ConnectorEntityField& AddCustomProperties(const char* key, const char* value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, value); return *this; } private: Aws::String m_identifier; bool m_identifierHasBeenSet = false; Aws::String m_parentIdentifier; bool m_parentIdentifierHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; bool m_isPrimaryKey; bool m_isPrimaryKeyHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; bool m_isDeprecated; bool m_isDeprecatedHasBeenSet = false; SupportedFieldTypeDetails m_supportedFieldTypeDetails; bool m_supportedFieldTypeDetailsHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; SourceFieldProperties m_sourceProperties; bool m_sourcePropertiesHasBeenSet = false; DestinationFieldProperties m_destinationProperties; bool m_destinationPropertiesHasBeenSet = false; Aws::Map m_customProperties; bool m_customPropertiesHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws