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

Identifies a participant in a handshake.

See Also:

AWS * API Reference

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

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline HandshakeParty& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline HandshakeParty& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier (ID) for the party.

The regex pattern for handshake ID string * requires "h-" followed by from 8 to 32 lowercase letters or digits.

*/ inline HandshakeParty& WithId(const char* value) { SetId(value); return *this;} /** *

The type of party.

*/ inline const HandshakePartyType& GetType() const{ return m_type; } /** *

The type of party.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of party.

*/ inline void SetType(const HandshakePartyType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of party.

*/ inline void SetType(HandshakePartyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of party.

*/ inline HandshakeParty& WithType(const HandshakePartyType& value) { SetType(value); return *this;} /** *

The type of party.

*/ inline HandshakeParty& WithType(HandshakePartyType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; HandshakePartyType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws