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

Properties of an individual vote that a member cast for a proposal.

*

Applies only to Hyperledger Fabric.

See Also:

AWS * API Reference

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

The vote value, either YES or NO.

*/ inline const VoteValue& GetVote() const{ return m_vote; } /** *

The vote value, either YES or NO.

*/ inline bool VoteHasBeenSet() const { return m_voteHasBeenSet; } /** *

The vote value, either YES or NO.

*/ inline void SetVote(const VoteValue& value) { m_voteHasBeenSet = true; m_vote = value; } /** *

The vote value, either YES or NO.

*/ inline void SetVote(VoteValue&& value) { m_voteHasBeenSet = true; m_vote = std::move(value); } /** *

The vote value, either YES or NO.

*/ inline VoteSummary& WithVote(const VoteValue& value) { SetVote(value); return *this;} /** *

The vote value, either YES or NO.

*/ inline VoteSummary& WithVote(VoteValue&& value) { SetVote(std::move(value)); return *this;} /** *

The name of the member that cast the vote.

*/ inline const Aws::String& GetMemberName() const{ return m_memberName; } /** *

The name of the member that cast the vote.

*/ inline bool MemberNameHasBeenSet() const { return m_memberNameHasBeenSet; } /** *

The name of the member that cast the vote.

*/ inline void SetMemberName(const Aws::String& value) { m_memberNameHasBeenSet = true; m_memberName = value; } /** *

The name of the member that cast the vote.

*/ inline void SetMemberName(Aws::String&& value) { m_memberNameHasBeenSet = true; m_memberName = std::move(value); } /** *

The name of the member that cast the vote.

*/ inline void SetMemberName(const char* value) { m_memberNameHasBeenSet = true; m_memberName.assign(value); } /** *

The name of the member that cast the vote.

*/ inline VoteSummary& WithMemberName(const Aws::String& value) { SetMemberName(value); return *this;} /** *

The name of the member that cast the vote.

*/ inline VoteSummary& WithMemberName(Aws::String&& value) { SetMemberName(std::move(value)); return *this;} /** *

The name of the member that cast the vote.

*/ inline VoteSummary& WithMemberName(const char* value) { SetMemberName(value); return *this;} /** *

The unique identifier of the member that cast the vote.

*/ inline const Aws::String& GetMemberId() const{ return m_memberId; } /** *

The unique identifier of the member that cast the vote.

*/ inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; } /** *

The unique identifier of the member that cast the vote.

*/ inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; } /** *

The unique identifier of the member that cast the vote.

*/ inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); } /** *

The unique identifier of the member that cast the vote.

*/ inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); } /** *

The unique identifier of the member that cast the vote.

*/ inline VoteSummary& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;} /** *

The unique identifier of the member that cast the vote.

*/ inline VoteSummary& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;} /** *

The unique identifier of the member that cast the vote.

*/ inline VoteSummary& WithMemberId(const char* value) { SetMemberId(value); return *this;} private: VoteValue m_vote; bool m_voteHasBeenSet = false; Aws::String m_memberName; bool m_memberNameHasBeenSet = false; Aws::String m_memberId; bool m_memberIdHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws