AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
NewRelicApiKeyConfig.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/NewRelicRegion.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 NewRelicApiKeyConfig() = default;
33 AWS_DEVOPSAGENT_API NewRelicApiKeyConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetApiKey() const { return m_apiKey; }
42 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
43 template <typename ApiKeyT = Aws::String>
44 void SetApiKey(ApiKeyT&& value) {
45 m_apiKeyHasBeenSet = true;
46 m_apiKey = std::forward<ApiKeyT>(value);
47 }
48 template <typename ApiKeyT = Aws::String>
49 NewRelicApiKeyConfig& WithApiKey(ApiKeyT&& value) {
50 SetApiKey(std::forward<ApiKeyT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAccountId() const { return m_accountId; }
60 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
61 template <typename AccountIdT = Aws::String>
62 void SetAccountId(AccountIdT&& value) {
63 m_accountIdHasBeenSet = true;
64 m_accountId = std::forward<AccountIdT>(value);
65 }
66 template <typename AccountIdT = Aws::String>
67 NewRelicApiKeyConfig& WithAccountId(AccountIdT&& value) {
68 SetAccountId(std::forward<AccountIdT>(value));
69 return *this;
70 }
72
74
77 inline NewRelicRegion GetRegion() const { return m_region; }
78 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
79 inline void SetRegion(NewRelicRegion value) {
80 m_regionHasBeenSet = true;
81 m_region = value;
82 }
84 SetRegion(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetApplicationIds() const { return m_applicationIds; }
94 inline bool ApplicationIdsHasBeenSet() const { return m_applicationIdsHasBeenSet; }
95 template <typename ApplicationIdsT = Aws::Vector<Aws::String>>
96 void SetApplicationIds(ApplicationIdsT&& value) {
97 m_applicationIdsHasBeenSet = true;
98 m_applicationIds = std::forward<ApplicationIdsT>(value);
99 }
100 template <typename ApplicationIdsT = Aws::Vector<Aws::String>>
101 NewRelicApiKeyConfig& WithApplicationIds(ApplicationIdsT&& value) {
102 SetApplicationIds(std::forward<ApplicationIdsT>(value));
103 return *this;
104 }
105 template <typename ApplicationIdsT = Aws::String>
106 NewRelicApiKeyConfig& AddApplicationIds(ApplicationIdsT&& value) {
107 m_applicationIdsHasBeenSet = true;
108 m_applicationIds.emplace_back(std::forward<ApplicationIdsT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<Aws::String>& GetEntityGuids() const { return m_entityGuids; }
119 inline bool EntityGuidsHasBeenSet() const { return m_entityGuidsHasBeenSet; }
120 template <typename EntityGuidsT = Aws::Vector<Aws::String>>
121 void SetEntityGuids(EntityGuidsT&& value) {
122 m_entityGuidsHasBeenSet = true;
123 m_entityGuids = std::forward<EntityGuidsT>(value);
124 }
125 template <typename EntityGuidsT = Aws::Vector<Aws::String>>
126 NewRelicApiKeyConfig& WithEntityGuids(EntityGuidsT&& value) {
127 SetEntityGuids(std::forward<EntityGuidsT>(value));
128 return *this;
129 }
130 template <typename EntityGuidsT = Aws::String>
131 NewRelicApiKeyConfig& AddEntityGuids(EntityGuidsT&& value) {
132 m_entityGuidsHasBeenSet = true;
133 m_entityGuids.emplace_back(std::forward<EntityGuidsT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<Aws::String>& GetAlertPolicyIds() const { return m_alertPolicyIds; }
143 inline bool AlertPolicyIdsHasBeenSet() const { return m_alertPolicyIdsHasBeenSet; }
144 template <typename AlertPolicyIdsT = Aws::Vector<Aws::String>>
145 void SetAlertPolicyIds(AlertPolicyIdsT&& value) {
146 m_alertPolicyIdsHasBeenSet = true;
147 m_alertPolicyIds = std::forward<AlertPolicyIdsT>(value);
148 }
149 template <typename AlertPolicyIdsT = Aws::Vector<Aws::String>>
150 NewRelicApiKeyConfig& WithAlertPolicyIds(AlertPolicyIdsT&& value) {
151 SetAlertPolicyIds(std::forward<AlertPolicyIdsT>(value));
152 return *this;
153 }
154 template <typename AlertPolicyIdsT = Aws::String>
155 NewRelicApiKeyConfig& AddAlertPolicyIds(AlertPolicyIdsT&& value) {
156 m_alertPolicyIdsHasBeenSet = true;
157 m_alertPolicyIds.emplace_back(std::forward<AlertPolicyIdsT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_apiKey;
163
164 Aws::String m_accountId;
165
167
168 Aws::Vector<Aws::String> m_applicationIds;
169
170 Aws::Vector<Aws::String> m_entityGuids;
171
172 Aws::Vector<Aws::String> m_alertPolicyIds;
173 bool m_apiKeyHasBeenSet = false;
174 bool m_accountIdHasBeenSet = false;
175 bool m_regionHasBeenSet = false;
176 bool m_applicationIdsHasBeenSet = false;
177 bool m_entityGuidsHasBeenSet = false;
178 bool m_alertPolicyIdsHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace DevOpsAgent
183} // namespace Aws
NewRelicApiKeyConfig & AddApplicationIds(ApplicationIdsT &&value)
const Aws::Vector< Aws::String > & GetEntityGuids() const
AWS_DEVOPSAGENT_API NewRelicApiKeyConfig()=default
NewRelicApiKeyConfig & AddEntityGuids(EntityGuidsT &&value)
const Aws::Vector< Aws::String > & GetAlertPolicyIds() const
const Aws::Vector< Aws::String > & GetApplicationIds() const
NewRelicApiKeyConfig & WithAlertPolicyIds(AlertPolicyIdsT &&value)
AWS_DEVOPSAGENT_API NewRelicApiKeyConfig(Aws::Utils::Json::JsonView jsonValue)
NewRelicApiKeyConfig & WithEntityGuids(EntityGuidsT &&value)
NewRelicApiKeyConfig & WithApiKey(ApiKeyT &&value)
NewRelicApiKeyConfig & WithApplicationIds(ApplicationIdsT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
NewRelicApiKeyConfig & WithRegion(NewRelicRegion value)
NewRelicApiKeyConfig & WithAccountId(AccountIdT &&value)
NewRelicApiKeyConfig & AddAlertPolicyIds(AlertPolicyIdsT &&value)
AWS_DEVOPSAGENT_API NewRelicApiKeyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue