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

Information includes the Amazon Web Services account ID where the current * document is shared and the version shared with that account.

See * Also:

AWS * API Reference

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

The Amazon Web Services account ID where the current document is shared.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account ID where the current document is shared.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account ID where the current document is shared.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account ID where the current document is shared.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account ID where the current document is shared.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account ID where the current document is shared.

*/ inline AccountSharingInfo& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID where the current document is shared.

*/ inline AccountSharingInfo& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID where the current document is shared.

*/ inline AccountSharingInfo& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The version of the current document shared with the account.

*/ inline const Aws::String& GetSharedDocumentVersion() const{ return m_sharedDocumentVersion; } /** *

The version of the current document shared with the account.

*/ inline bool SharedDocumentVersionHasBeenSet() const { return m_sharedDocumentVersionHasBeenSet; } /** *

The version of the current document shared with the account.

*/ inline void SetSharedDocumentVersion(const Aws::String& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = value; } /** *

The version of the current document shared with the account.

*/ inline void SetSharedDocumentVersion(Aws::String&& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = std::move(value); } /** *

The version of the current document shared with the account.

*/ inline void SetSharedDocumentVersion(const char* value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion.assign(value); } /** *

The version of the current document shared with the account.

*/ inline AccountSharingInfo& WithSharedDocumentVersion(const Aws::String& value) { SetSharedDocumentVersion(value); return *this;} /** *

The version of the current document shared with the account.

*/ inline AccountSharingInfo& WithSharedDocumentVersion(Aws::String&& value) { SetSharedDocumentVersion(std::move(value)); return *this;} /** *

The version of the current document shared with the account.

*/ inline AccountSharingInfo& WithSharedDocumentVersion(const char* value) { SetSharedDocumentVersion(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_sharedDocumentVersion; bool m_sharedDocumentVersionHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws