/** * 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 Transfer { namespace Model { /** */ class CreateProfileRequest : public TransferRequest { public: AWS_TRANSFER_API CreateProfileRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateProfile"; } AWS_TRANSFER_API Aws::String SerializePayload() const override; AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline const Aws::String& GetAs2Id() const{ return m_as2Id; } /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline bool As2IdHasBeenSet() const { return m_as2IdHasBeenSet; } /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline void SetAs2Id(const Aws::String& value) { m_as2IdHasBeenSet = true; m_as2Id = value; } /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline void SetAs2Id(Aws::String&& value) { m_as2IdHasBeenSet = true; m_as2Id = std::move(value); } /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline void SetAs2Id(const char* value) { m_as2IdHasBeenSet = true; m_as2Id.assign(value); } /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline CreateProfileRequest& WithAs2Id(const Aws::String& value) { SetAs2Id(value); return *this;} /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline CreateProfileRequest& WithAs2Id(Aws::String&& value) { SetAs2Id(std::move(value)); return *this;} /** *

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound * transfers, this is the AS2-From header for the AS2 messages sent * from the partner. For outbound connectors, this is the AS2-To * header for the AS2 messages sent to the partner using the * StartFileTransfer API operation. This ID cannot include spaces.

*/ inline CreateProfileRequest& WithAs2Id(const char* value) { SetAs2Id(value); return *this;} /** *

Determines the type of profile to create:

  • Specify * LOCAL to create a local profile. A local profile represents the * AS2-enabled Transfer Family server organization or party.

  • *

    Specify PARTNER to create a partner profile. A partner profile * represents a remote organization, external to Transfer Family.

*/ inline const ProfileType& GetProfileType() const{ return m_profileType; } /** *

Determines the type of profile to create:

  • Specify * LOCAL to create a local profile. A local profile represents the * AS2-enabled Transfer Family server organization or party.

  • *

    Specify PARTNER to create a partner profile. A partner profile * represents a remote organization, external to Transfer Family.

*/ inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; } /** *

Determines the type of profile to create:

  • Specify * LOCAL to create a local profile. A local profile represents the * AS2-enabled Transfer Family server organization or party.

  • *

    Specify PARTNER to create a partner profile. A partner profile * represents a remote organization, external to Transfer Family.

*/ inline void SetProfileType(const ProfileType& value) { m_profileTypeHasBeenSet = true; m_profileType = value; } /** *

Determines the type of profile to create:

  • Specify * LOCAL to create a local profile. A local profile represents the * AS2-enabled Transfer Family server organization or party.

  • *

    Specify PARTNER to create a partner profile. A partner profile * represents a remote organization, external to Transfer Family.

*/ inline void SetProfileType(ProfileType&& value) { m_profileTypeHasBeenSet = true; m_profileType = std::move(value); } /** *

Determines the type of profile to create:

  • Specify * LOCAL to create a local profile. A local profile represents the * AS2-enabled Transfer Family server organization or party.

  • *

    Specify PARTNER to create a partner profile. A partner profile * represents a remote organization, external to Transfer Family.

*/ inline CreateProfileRequest& WithProfileType(const ProfileType& value) { SetProfileType(value); return *this;} /** *

Determines the type of profile to create:

  • Specify * LOCAL to create a local profile. A local profile represents the * AS2-enabled Transfer Family server organization or party.

  • *

    Specify PARTNER to create a partner profile. A partner profile * represents a remote organization, external to Transfer Family.

*/ inline CreateProfileRequest& WithProfileType(ProfileType&& value) { SetProfileType(std::move(value)); return *this;} /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline const Aws::Vector& GetCertificateIds() const{ return m_certificateIds; } /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline bool CertificateIdsHasBeenSet() const { return m_certificateIdsHasBeenSet; } /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline void SetCertificateIds(const Aws::Vector& value) { m_certificateIdsHasBeenSet = true; m_certificateIds = value; } /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline void SetCertificateIds(Aws::Vector&& value) { m_certificateIdsHasBeenSet = true; m_certificateIds = std::move(value); } /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline CreateProfileRequest& WithCertificateIds(const Aws::Vector& value) { SetCertificateIds(value); return *this;} /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline CreateProfileRequest& WithCertificateIds(Aws::Vector&& value) { SetCertificateIds(std::move(value)); return *this;} /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline CreateProfileRequest& AddCertificateIds(const Aws::String& value) { m_certificateIdsHasBeenSet = true; m_certificateIds.push_back(value); return *this; } /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline CreateProfileRequest& AddCertificateIds(Aws::String&& value) { m_certificateIdsHasBeenSet = true; m_certificateIds.push_back(std::move(value)); return *this; } /** *

An array of identifiers for the imported certificates. You use this * identifier for working with profiles and partner profiles.

*/ inline CreateProfileRequest& AddCertificateIds(const char* value) { m_certificateIdsHasBeenSet = true; m_certificateIds.push_back(value); return *this; } /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline CreateProfileRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline CreateProfileRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline CreateProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Key-value pairs that can be used to group and search for AS2 profiles.

*/ inline CreateProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_as2Id; bool m_as2IdHasBeenSet = false; ProfileType m_profileType; bool m_profileTypeHasBeenSet = false; Aws::Vector m_certificateIds; bool m_certificateIdsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws