AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AccountSharingInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SSM {
20namespace Model {
21
30 public:
31 AWS_SSM_API AccountSharingInfo() = default;
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 AccountSharingInfo& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSharedDocumentVersion() const { return m_sharedDocumentVersion; }
59 inline bool SharedDocumentVersionHasBeenSet() const { return m_sharedDocumentVersionHasBeenSet; }
60 template <typename SharedDocumentVersionT = Aws::String>
61 void SetSharedDocumentVersion(SharedDocumentVersionT&& value) {
62 m_sharedDocumentVersionHasBeenSet = true;
63 m_sharedDocumentVersion = std::forward<SharedDocumentVersionT>(value);
64 }
65 template <typename SharedDocumentVersionT = Aws::String>
66 AccountSharingInfo& WithSharedDocumentVersion(SharedDocumentVersionT&& value) {
67 SetSharedDocumentVersion(std::forward<SharedDocumentVersionT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_accountId;
73
74 Aws::String m_sharedDocumentVersion;
75 bool m_accountIdHasBeenSet = false;
76 bool m_sharedDocumentVersionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace SSM
81} // namespace Aws
const Aws::String & GetSharedDocumentVersion() const
AccountSharingInfo & WithAccountId(AccountIdT &&value)
AWS_SSM_API AccountSharingInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API AccountSharingInfo()=default
void SetAccountId(AccountIdT &&value)
AWS_SSM_API AccountSharingInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountSharingInfo & WithSharedDocumentVersion(SharedDocumentVersionT &&value)
const Aws::String & GetAccountId() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSharedDocumentVersion(SharedDocumentVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue