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

An invitation to an Amazon Web Services account to create a member and join * the network.

Applies only to Hyperledger Fabric.

See Also:

* AWS * API Reference

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

The unique identifier for the invitation.

*/ inline const Aws::String& GetInvitationId() const{ return m_invitationId; } /** *

The unique identifier for the invitation.

*/ inline bool InvitationIdHasBeenSet() const { return m_invitationIdHasBeenSet; } /** *

The unique identifier for the invitation.

*/ inline void SetInvitationId(const Aws::String& value) { m_invitationIdHasBeenSet = true; m_invitationId = value; } /** *

The unique identifier for the invitation.

*/ inline void SetInvitationId(Aws::String&& value) { m_invitationIdHasBeenSet = true; m_invitationId = std::move(value); } /** *

The unique identifier for the invitation.

*/ inline void SetInvitationId(const char* value) { m_invitationIdHasBeenSet = true; m_invitationId.assign(value); } /** *

The unique identifier for the invitation.

*/ inline Invitation& WithInvitationId(const Aws::String& value) { SetInvitationId(value); return *this;} /** *

The unique identifier for the invitation.

*/ inline Invitation& WithInvitationId(Aws::String&& value) { SetInvitationId(std::move(value)); return *this;} /** *

The unique identifier for the invitation.

*/ inline Invitation& WithInvitationId(const char* value) { SetInvitationId(value); return *this;} /** *

The date and time that the invitation was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date and time that the invitation was created.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The date and time that the invitation was created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The date and time that the invitation was created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The date and time that the invitation was created.

*/ inline Invitation& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time that the invitation was created.

*/ inline Invitation& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The date and time that the invitation expires. This is the * CreationDate plus the ProposalDurationInHours that is * specified in the ProposalThresholdPolicy. After this date and time, * the invitee can no longer create a member and join the network using this * InvitationId.

*/ inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; } /** *

The date and time that the invitation expires. This is the * CreationDate plus the ProposalDurationInHours that is * specified in the ProposalThresholdPolicy. After this date and time, * the invitee can no longer create a member and join the network using this * InvitationId.

*/ inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; } /** *

The date and time that the invitation expires. This is the * CreationDate plus the ProposalDurationInHours that is * specified in the ProposalThresholdPolicy. After this date and time, * the invitee can no longer create a member and join the network using this * InvitationId.

*/ inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; } /** *

The date and time that the invitation expires. This is the * CreationDate plus the ProposalDurationInHours that is * specified in the ProposalThresholdPolicy. After this date and time, * the invitee can no longer create a member and join the network using this * InvitationId.

*/ inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); } /** *

The date and time that the invitation expires. This is the * CreationDate plus the ProposalDurationInHours that is * specified in the ProposalThresholdPolicy. After this date and time, * the invitee can no longer create a member and join the network using this * InvitationId.

*/ inline Invitation& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;} /** *

The date and time that the invitation expires. This is the * CreationDate plus the ProposalDurationInHours that is * specified in the ProposalThresholdPolicy. After this date and time, * the invitee can no longer create a member and join the network using this * InvitationId.

*/ inline Invitation& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;} /** *

The status of the invitation:

  • PENDING - The * invitee hasn't created a member to join the network, and the invitation hasn't * yet expired.

  • ACCEPTING - The invitee has begun * creating a member, and creation hasn't yet completed.

  • * ACCEPTED - The invitee created a member and joined the network * using the InvitationID.

  • REJECTED - * The invitee rejected the invitation.

  • EXPIRED - * The invitee neither created a member nor rejected the invitation before the * ExpirationDate.

*/ inline const InvitationStatus& GetStatus() const{ return m_status; } /** *

The status of the invitation:

  • PENDING - The * invitee hasn't created a member to join the network, and the invitation hasn't * yet expired.

  • ACCEPTING - The invitee has begun * creating a member, and creation hasn't yet completed.

  • * ACCEPTED - The invitee created a member and joined the network * using the InvitationID.

  • REJECTED - * The invitee rejected the invitation.

  • EXPIRED - * The invitee neither created a member nor rejected the invitation before the * ExpirationDate.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the invitation:

  • PENDING - The * invitee hasn't created a member to join the network, and the invitation hasn't * yet expired.

  • ACCEPTING - The invitee has begun * creating a member, and creation hasn't yet completed.

  • * ACCEPTED - The invitee created a member and joined the network * using the InvitationID.

  • REJECTED - * The invitee rejected the invitation.

  • EXPIRED - * The invitee neither created a member nor rejected the invitation before the * ExpirationDate.

*/ inline void SetStatus(const InvitationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the invitation:

  • PENDING - The * invitee hasn't created a member to join the network, and the invitation hasn't * yet expired.

  • ACCEPTING - The invitee has begun * creating a member, and creation hasn't yet completed.

  • * ACCEPTED - The invitee created a member and joined the network * using the InvitationID.

  • REJECTED - * The invitee rejected the invitation.

  • EXPIRED - * The invitee neither created a member nor rejected the invitation before the * ExpirationDate.

*/ inline void SetStatus(InvitationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the invitation:

  • PENDING - The * invitee hasn't created a member to join the network, and the invitation hasn't * yet expired.

  • ACCEPTING - The invitee has begun * creating a member, and creation hasn't yet completed.

  • * ACCEPTED - The invitee created a member and joined the network * using the InvitationID.

  • REJECTED - * The invitee rejected the invitation.

  • EXPIRED - * The invitee neither created a member nor rejected the invitation before the * ExpirationDate.

*/ inline Invitation& WithStatus(const InvitationStatus& value) { SetStatus(value); return *this;} /** *

The status of the invitation:

  • PENDING - The * invitee hasn't created a member to join the network, and the invitation hasn't * yet expired.

  • ACCEPTING - The invitee has begun * creating a member, and creation hasn't yet completed.

  • * ACCEPTED - The invitee created a member and joined the network * using the InvitationID.

  • REJECTED - * The invitee rejected the invitation.

  • EXPIRED - * The invitee neither created a member nor rejected the invitation before the * ExpirationDate.

*/ inline Invitation& WithStatus(InvitationStatus&& value) { SetStatus(std::move(value)); return *this;} inline const NetworkSummary& GetNetworkSummary() const{ return m_networkSummary; } inline bool NetworkSummaryHasBeenSet() const { return m_networkSummaryHasBeenSet; } inline void SetNetworkSummary(const NetworkSummary& value) { m_networkSummaryHasBeenSet = true; m_networkSummary = value; } inline void SetNetworkSummary(NetworkSummary&& value) { m_networkSummaryHasBeenSet = true; m_networkSummary = std::move(value); } inline Invitation& WithNetworkSummary(const NetworkSummary& value) { SetNetworkSummary(value); return *this;} inline Invitation& WithNetworkSummary(NetworkSummary&& value) { SetNetworkSummary(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

The Amazon Resource Name (ARN) of the invitation. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline Invitation& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_invitationId; bool m_invitationIdHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_expirationDate; bool m_expirationDateHasBeenSet = false; InvitationStatus m_status; bool m_statusHasBeenSet = false; NetworkSummary m_networkSummary; bool m_networkSummaryHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws