/** * 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 Transfer { namespace Model { /** *

The details for a local or partner AS2 profile.

See Also:

* AWS * API Reference

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

The unique Amazon Resource Name (ARN) for the profile.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The unique Amazon Resource Name (ARN) for the profile.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The unique Amazon Resource Name (ARN) for the profile.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The unique Amazon Resource Name (ARN) for the profile.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The unique Amazon Resource Name (ARN) for the profile.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The unique Amazon Resource Name (ARN) for the profile.

*/ inline DescribedProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The unique Amazon Resource Name (ARN) for the profile.

*/ inline DescribedProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The unique Amazon Resource Name (ARN) for the profile.

*/ inline DescribedProfile& WithArn(const char* value) { SetArn(value); return *this;} /** *

A unique identifier for the local or partner AS2 profile.

*/ inline const Aws::String& GetProfileId() const{ return m_profileId; } /** *

A unique identifier for the local or partner AS2 profile.

*/ inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } /** *

A unique identifier for the local or partner AS2 profile.

*/ inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } /** *

A unique identifier for the local or partner AS2 profile.

*/ inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } /** *

A unique identifier for the local or partner AS2 profile.

*/ inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } /** *

A unique identifier for the local or partner AS2 profile.

*/ inline DescribedProfile& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} /** *

A unique identifier for the local or partner AS2 profile.

*/ inline DescribedProfile& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} /** *

A unique identifier for the local or partner AS2 profile.

*/ inline DescribedProfile& WithProfileId(const char* value) { SetProfileId(value); return *this;} /** *

Indicates whether to list only LOCAL type profiles or only * PARTNER type profiles. If not supplied in the request, the command * lists all types of profiles.

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

Indicates whether to list only LOCAL type profiles or only * PARTNER type profiles. If not supplied in the request, the command * lists all types of profiles.

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

Indicates whether to list only LOCAL type profiles or only * PARTNER type profiles. If not supplied in the request, the command * lists all types of profiles.

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

Indicates whether to list only LOCAL type profiles or only * PARTNER type profiles. If not supplied in the request, the command * lists all types of profiles.

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

Indicates whether to list only LOCAL type profiles or only * PARTNER type profiles. If not supplied in the request, the command * lists all types of profiles.

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

Indicates whether to list only LOCAL type profiles or only * PARTNER type profiles. If not supplied in the request, the command * lists all types of profiles.

*/ inline DescribedProfile& WithProfileType(ProfileType&& value) { SetProfileType(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 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 DescribedProfile& 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 DescribedProfile& 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 DescribedProfile& WithAs2Id(const char* value) { SetAs2Id(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 DescribedProfile& 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 DescribedProfile& 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 DescribedProfile& 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 DescribedProfile& 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 DescribedProfile& 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 profiles.

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

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

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

Key-value pairs that can be used to group and search for 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 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 profiles.

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

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

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

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

*/ inline DescribedProfile& 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 profiles.

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