AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
OrgSourceIssue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/OrgSourceAccountReasonCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
31 public:
32 AWS_DEVOPSAGENT_API OrgSourceIssue() = default;
33 AWS_DEVOPSAGENT_API OrgSourceIssue(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API OrgSourceIssue& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline OrgSourceAccountReasonCode GetReasonCode() const { return m_reasonCode; }
42 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
44 m_reasonCodeHasBeenSet = true;
45 m_reasonCode = value;
46 }
48 SetReasonCode(value);
49 return *this;
50 }
52
54
57 inline int GetAccountCount() const { return m_accountCount; }
58 inline bool AccountCountHasBeenSet() const { return m_accountCountHasBeenSet; }
59 inline void SetAccountCount(int value) {
60 m_accountCountHasBeenSet = true;
61 m_accountCount = value;
62 }
63 inline OrgSourceIssue& WithAccountCount(int value) {
64 SetAccountCount(value);
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
74 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
75 template <typename AccountIdsT = Aws::Vector<Aws::String>>
76 void SetAccountIds(AccountIdsT&& value) {
77 m_accountIdsHasBeenSet = true;
78 m_accountIds = std::forward<AccountIdsT>(value);
79 }
80 template <typename AccountIdsT = Aws::Vector<Aws::String>>
81 OrgSourceIssue& WithAccountIds(AccountIdsT&& value) {
82 SetAccountIds(std::forward<AccountIdsT>(value));
83 return *this;
84 }
85 template <typename AccountIdsT = Aws::String>
86 OrgSourceIssue& AddAccountIds(AccountIdsT&& value) {
87 m_accountIdsHasBeenSet = true;
88 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetMessage() const { return m_message; }
98 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
99 template <typename MessageT = Aws::String>
100 void SetMessage(MessageT&& value) {
101 m_messageHasBeenSet = true;
102 m_message = std::forward<MessageT>(value);
103 }
104 template <typename MessageT = Aws::String>
105 OrgSourceIssue& WithMessage(MessageT&& value) {
106 SetMessage(std::forward<MessageT>(value));
107 return *this;
108 }
110 private:
112
113 int m_accountCount{0};
114
115 Aws::Vector<Aws::String> m_accountIds;
116
117 Aws::String m_message;
118 bool m_reasonCodeHasBeenSet = false;
119 bool m_accountCountHasBeenSet = false;
120 bool m_accountIdsHasBeenSet = false;
121 bool m_messageHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace DevOpsAgent
126} // namespace Aws
OrgSourceIssue & WithReasonCode(OrgSourceAccountReasonCode value)
const Aws::Vector< Aws::String > & GetAccountIds() const
const Aws::String & GetMessage() const
void SetReasonCode(OrgSourceAccountReasonCode value)
AWS_DEVOPSAGENT_API OrgSourceIssue(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API OrgSourceIssue()=default
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
OrgSourceIssue & AddAccountIds(AccountIdsT &&value)
AWS_DEVOPSAGENT_API OrgSourceIssue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccountIds(AccountIdsT &&value)
OrgSourceIssue & WithAccountIds(AccountIdsT &&value)
OrgSourceAccountReasonCode GetReasonCode() const
OrgSourceIssue & WithMessage(MessageT &&value)
OrgSourceIssue & WithAccountCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue