/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/mgn/Mgn_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace mgn { namespace Model { /** * <p>Managed account.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/ManagedAccount">AWS * API Reference</a></p> */ class ManagedAccount { public: AWS_MGN_API ManagedAccount(); AWS_MGN_API ManagedAccount(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API ManagedAccount& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>Managed account, account ID.</p> */ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** * <p>Managed account, account ID.</p> */ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** * <p>Managed account, account ID.</p> */ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** * <p>Managed account, account ID.</p> */ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** * <p>Managed account, account ID.</p> */ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** * <p>Managed account, account ID.</p> */ inline ManagedAccount& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** * <p>Managed account, account ID.</p> */ inline ManagedAccount& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** * <p>Managed account, account ID.</p> */ inline ManagedAccount& WithAccountId(const char* value) { SetAccountId(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws