/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Appflow { namespace Model { /** *

Describes an instance of a connector. This includes the provided name, * credentials ARN, connection-mode, and so on. To keep the API intuitive and * extensible, the fields that are common to all types of connector profiles are * explicitly specified at the top level. The rest of the connector-specific * properties are available via the connectorProfileProperties field. *

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the connector profile.

*/ inline const Aws::String& GetConnectorProfileArn() const{ return m_connectorProfileArn; } /** *

The Amazon Resource Name (ARN) of the connector profile.

*/ inline bool ConnectorProfileArnHasBeenSet() const { return m_connectorProfileArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the connector profile.

*/ inline void SetConnectorProfileArn(const Aws::String& value) { m_connectorProfileArnHasBeenSet = true; m_connectorProfileArn = value; } /** *

The Amazon Resource Name (ARN) of the connector profile.

*/ inline void SetConnectorProfileArn(Aws::String&& value) { m_connectorProfileArnHasBeenSet = true; m_connectorProfileArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the connector profile.

*/ inline void SetConnectorProfileArn(const char* value) { m_connectorProfileArnHasBeenSet = true; m_connectorProfileArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the connector profile.

*/ inline ConnectorProfile& WithConnectorProfileArn(const Aws::String& value) { SetConnectorProfileArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the connector profile.

*/ inline ConnectorProfile& WithConnectorProfileArn(Aws::String&& value) { SetConnectorProfileArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the connector profile.

*/ inline ConnectorProfile& WithConnectorProfileArn(const char* value) { SetConnectorProfileArn(value); return *this;} /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline const Aws::String& GetConnectorProfileName() const{ return m_connectorProfileName; } /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline bool ConnectorProfileNameHasBeenSet() const { return m_connectorProfileNameHasBeenSet; } /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline void SetConnectorProfileName(const Aws::String& value) { m_connectorProfileNameHasBeenSet = true; m_connectorProfileName = value; } /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline void SetConnectorProfileName(Aws::String&& value) { m_connectorProfileNameHasBeenSet = true; m_connectorProfileName = std::move(value); } /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline void SetConnectorProfileName(const char* value) { m_connectorProfileNameHasBeenSet = true; m_connectorProfileName.assign(value); } /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline ConnectorProfile& WithConnectorProfileName(const Aws::String& value) { SetConnectorProfileName(value); return *this;} /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline ConnectorProfile& WithConnectorProfileName(Aws::String&& value) { SetConnectorProfileName(std::move(value)); return *this;} /** *

The name of the connector profile. The name is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline ConnectorProfile& WithConnectorProfileName(const char* value) { SetConnectorProfileName(value); return *this;} /** *

The type of connector, such as Salesforce, Amplitude, and so on.

*/ inline const ConnectorType& GetConnectorType() const{ return m_connectorType; } /** *

The type of connector, such as Salesforce, Amplitude, and so on.

*/ inline bool ConnectorTypeHasBeenSet() const { return m_connectorTypeHasBeenSet; } /** *

The type of connector, such as Salesforce, Amplitude, and so on.

*/ inline void SetConnectorType(const ConnectorType& value) { m_connectorTypeHasBeenSet = true; m_connectorType = value; } /** *

The type of connector, such as Salesforce, Amplitude, and so on.

*/ inline void SetConnectorType(ConnectorType&& value) { m_connectorTypeHasBeenSet = true; m_connectorType = std::move(value); } /** *

The type of connector, such as Salesforce, Amplitude, and so on.

*/ inline ConnectorProfile& WithConnectorType(const ConnectorType& value) { SetConnectorType(value); return *this;} /** *

The type of connector, such as Salesforce, Amplitude, and so on.

*/ inline ConnectorProfile& WithConnectorType(ConnectorType&& value) { SetConnectorType(std::move(value)); return *this;} /** *

The label for the connector profile being created.

*/ inline const Aws::String& GetConnectorLabel() const{ return m_connectorLabel; } /** *

The label for the connector profile being created.

*/ inline bool ConnectorLabelHasBeenSet() const { return m_connectorLabelHasBeenSet; } /** *

The label for the connector profile being created.

*/ inline void SetConnectorLabel(const Aws::String& value) { m_connectorLabelHasBeenSet = true; m_connectorLabel = value; } /** *

The label for the connector profile being created.

*/ inline void SetConnectorLabel(Aws::String&& value) { m_connectorLabelHasBeenSet = true; m_connectorLabel = std::move(value); } /** *

The label for the connector profile being created.

*/ inline void SetConnectorLabel(const char* value) { m_connectorLabelHasBeenSet = true; m_connectorLabel.assign(value); } /** *

The label for the connector profile being created.

*/ inline ConnectorProfile& WithConnectorLabel(const Aws::String& value) { SetConnectorLabel(value); return *this;} /** *

The label for the connector profile being created.

*/ inline ConnectorProfile& WithConnectorLabel(Aws::String&& value) { SetConnectorLabel(std::move(value)); return *this;} /** *

The label for the connector profile being created.

*/ inline ConnectorProfile& WithConnectorLabel(const char* value) { SetConnectorLabel(value); return *this;} /** *

Indicates the connection mode and if it is public or private.

*/ inline const ConnectionMode& GetConnectionMode() const{ return m_connectionMode; } /** *

Indicates the connection mode and if it is public or private.

*/ inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; } /** *

Indicates the connection mode and if it is public or private.

*/ inline void SetConnectionMode(const ConnectionMode& value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; } /** *

Indicates the connection mode and if it is public or private.

*/ inline void SetConnectionMode(ConnectionMode&& value) { m_connectionModeHasBeenSet = true; m_connectionMode = std::move(value); } /** *

Indicates the connection mode and if it is public or private.

*/ inline ConnectorProfile& WithConnectionMode(const ConnectionMode& value) { SetConnectionMode(value); return *this;} /** *

Indicates the connection mode and if it is public or private.

*/ inline ConnectorProfile& WithConnectionMode(ConnectionMode&& value) { SetConnectionMode(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline const Aws::String& GetCredentialsArn() const{ return m_credentialsArn; } /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline bool CredentialsArnHasBeenSet() const { return m_credentialsArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline void SetCredentialsArn(const Aws::String& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = value; } /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline void SetCredentialsArn(Aws::String&& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline void SetCredentialsArn(const char* value) { m_credentialsArnHasBeenSet = true; m_credentialsArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline ConnectorProfile& WithCredentialsArn(const Aws::String& value) { SetCredentialsArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline ConnectorProfile& WithCredentialsArn(Aws::String&& value) { SetCredentialsArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the connector profile credentials.

*/ inline ConnectorProfile& WithCredentialsArn(const char* value) { SetCredentialsArn(value); return *this;} /** *

The connector-specific properties of the profile configuration.

*/ inline const ConnectorProfileProperties& GetConnectorProfileProperties() const{ return m_connectorProfileProperties; } /** *

The connector-specific properties of the profile configuration.

*/ inline bool ConnectorProfilePropertiesHasBeenSet() const { return m_connectorProfilePropertiesHasBeenSet; } /** *

The connector-specific properties of the profile configuration.

*/ inline void SetConnectorProfileProperties(const ConnectorProfileProperties& value) { m_connectorProfilePropertiesHasBeenSet = true; m_connectorProfileProperties = value; } /** *

The connector-specific properties of the profile configuration.

*/ inline void SetConnectorProfileProperties(ConnectorProfileProperties&& value) { m_connectorProfilePropertiesHasBeenSet = true; m_connectorProfileProperties = std::move(value); } /** *

The connector-specific properties of the profile configuration.

*/ inline ConnectorProfile& WithConnectorProfileProperties(const ConnectorProfileProperties& value) { SetConnectorProfileProperties(value); return *this;} /** *

The connector-specific properties of the profile configuration.

*/ inline ConnectorProfile& WithConnectorProfileProperties(ConnectorProfileProperties&& value) { SetConnectorProfileProperties(std::move(value)); return *this;} /** *

Specifies when the connector profile was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

Specifies when the connector profile was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

Specifies when the connector profile was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

Specifies when the connector profile was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

Specifies when the connector profile was created.

*/ inline ConnectorProfile& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

Specifies when the connector profile was created.

*/ inline ConnectorProfile& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

Specifies when the connector profile was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

Specifies when the connector profile was last updated.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

Specifies when the connector profile was last updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

Specifies when the connector profile was last updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

Specifies when the connector profile was last updated.

*/ inline ConnectorProfile& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

Specifies when the connector profile was last updated.

*/ inline ConnectorProfile& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

Specifies the private connection provisioning state.

*/ inline const PrivateConnectionProvisioningState& GetPrivateConnectionProvisioningState() const{ return m_privateConnectionProvisioningState; } /** *

Specifies the private connection provisioning state.

*/ inline bool PrivateConnectionProvisioningStateHasBeenSet() const { return m_privateConnectionProvisioningStateHasBeenSet; } /** *

Specifies the private connection provisioning state.

*/ inline void SetPrivateConnectionProvisioningState(const PrivateConnectionProvisioningState& value) { m_privateConnectionProvisioningStateHasBeenSet = true; m_privateConnectionProvisioningState = value; } /** *

Specifies the private connection provisioning state.

*/ inline void SetPrivateConnectionProvisioningState(PrivateConnectionProvisioningState&& value) { m_privateConnectionProvisioningStateHasBeenSet = true; m_privateConnectionProvisioningState = std::move(value); } /** *

Specifies the private connection provisioning state.

*/ inline ConnectorProfile& WithPrivateConnectionProvisioningState(const PrivateConnectionProvisioningState& value) { SetPrivateConnectionProvisioningState(value); return *this;} /** *

Specifies the private connection provisioning state.

*/ inline ConnectorProfile& WithPrivateConnectionProvisioningState(PrivateConnectionProvisioningState&& value) { SetPrivateConnectionProvisioningState(std::move(value)); return *this;} private: Aws::String m_connectorProfileArn; bool m_connectorProfileArnHasBeenSet = false; Aws::String m_connectorProfileName; bool m_connectorProfileNameHasBeenSet = false; ConnectorType m_connectorType; bool m_connectorTypeHasBeenSet = false; Aws::String m_connectorLabel; bool m_connectorLabelHasBeenSet = false; ConnectionMode m_connectionMode; bool m_connectionModeHasBeenSet = false; Aws::String m_credentialsArn; bool m_credentialsArnHasBeenSet = false; ConnectorProfileProperties m_connectorProfileProperties; bool m_connectorProfilePropertiesHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; PrivateConnectionProvisioningState m_privateConnectionProvisioningState; bool m_privateConnectionProvisioningStateHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws