AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
PutInventoryConfigurationRequest.h
1
6#pragma once
7#include <aws/acm/ACMRequest.h>
8#include <aws/acm/ACM_EXPORTS.h>
9#include <aws/acm/model/AccountScope.h>
10#include <aws/acm/model/InventoryExpiryNotification.h>
11#include <aws/acm/model/InventoryStatus.h>
12#include <aws/acm/model/InventoryTier.h>
13#include <aws/acm/model/LifecycleManagement.h>
14#include <aws/acm/model/RegionalScope.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ACM {
20namespace Model {
21
25 public:
26 AWS_ACM_API PutInventoryConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutInventoryConfiguration"; }
33
34 AWS_ACM_API Aws::String SerializePayload() const override;
35
37
41 AWS_ACM_API EndpointParameters GetEndpointContextParams() const override;
42
44
47 inline const RegionalScope& GetRegionalScope() const { return m_regionalScope; }
48 inline bool RegionalScopeHasBeenSet() const { return m_regionalScopeHasBeenSet; }
49 template <typename RegionalScopeT = RegionalScope>
50 void SetRegionalScope(RegionalScopeT&& value) {
51 m_regionalScopeHasBeenSet = true;
52 m_regionalScope = std::forward<RegionalScopeT>(value);
53 }
54 template <typename RegionalScopeT = RegionalScope>
56 SetRegionalScope(std::forward<RegionalScopeT>(value));
57 return *this;
58 }
60
62
65 inline const AccountScope& GetAccountScope() const { return m_accountScope; }
66 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
67 template <typename AccountScopeT = AccountScope>
68 void SetAccountScope(AccountScopeT&& value) {
69 m_accountScopeHasBeenSet = true;
70 m_accountScope = std::forward<AccountScopeT>(value);
71 }
72 template <typename AccountScopeT = AccountScope>
74 SetAccountScope(std::forward<AccountScopeT>(value));
75 return *this;
76 }
78
80
84 inline int GetDataRetentionDays() const { return m_dataRetentionDays; }
85 inline bool DataRetentionDaysHasBeenSet() const { return m_dataRetentionDaysHasBeenSet; }
86 inline void SetDataRetentionDays(int value) {
87 m_dataRetentionDaysHasBeenSet = true;
88 m_dataRetentionDays = value;
89 }
92 return *this;
93 }
95
97
107 inline InventoryStatus GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(InventoryStatus value) {
110 m_statusHasBeenSet = true;
111 m_status = value;
112 }
114 SetStatus(value);
115 return *this;
116 }
118
120
126 inline const LifecycleManagement& GetLifecycleManagement() const { return m_lifecycleManagement; }
127 inline bool LifecycleManagementHasBeenSet() const { return m_lifecycleManagementHasBeenSet; }
128 template <typename LifecycleManagementT = LifecycleManagement>
129 void SetLifecycleManagement(LifecycleManagementT&& value) {
130 m_lifecycleManagementHasBeenSet = true;
131 m_lifecycleManagement = std::forward<LifecycleManagementT>(value);
132 }
133 template <typename LifecycleManagementT = LifecycleManagement>
135 SetLifecycleManagement(std::forward<LifecycleManagementT>(value));
136 return *this;
137 }
139
141
146 inline const InventoryExpiryNotification& GetExpiryNotification() const { return m_expiryNotification; }
147 inline bool ExpiryNotificationHasBeenSet() const { return m_expiryNotificationHasBeenSet; }
148 template <typename ExpiryNotificationT = InventoryExpiryNotification>
149 void SetExpiryNotification(ExpiryNotificationT&& value) {
150 m_expiryNotificationHasBeenSet = true;
151 m_expiryNotification = std::forward<ExpiryNotificationT>(value);
152 }
153 template <typename ExpiryNotificationT = InventoryExpiryNotification>
155 SetExpiryNotification(std::forward<ExpiryNotificationT>(value));
156 return *this;
157 }
159
161
175 inline InventoryTier GetInventoryTier() const { return m_inventoryTier; }
176 inline bool InventoryTierHasBeenSet() const { return m_inventoryTierHasBeenSet; }
177 inline void SetInventoryTier(InventoryTier value) {
178 m_inventoryTierHasBeenSet = true;
179 m_inventoryTier = value;
180 }
182 SetInventoryTier(value);
183 return *this;
184 }
186 private:
187 RegionalScope m_regionalScope;
188
189 AccountScope m_accountScope;
190
191 int m_dataRetentionDays{0};
192
194
195 LifecycleManagement m_lifecycleManagement;
196
197 InventoryExpiryNotification m_expiryNotification;
198
199 InventoryTier m_inventoryTier{InventoryTier::NOT_SET};
200 bool m_regionalScopeHasBeenSet = false;
201 bool m_accountScopeHasBeenSet = false;
202 bool m_dataRetentionDaysHasBeenSet = false;
203 bool m_statusHasBeenSet = false;
204 bool m_lifecycleManagementHasBeenSet = false;
205 bool m_expiryNotificationHasBeenSet = false;
206 bool m_inventoryTierHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace ACM
211} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
Definition ACMRequest.h:18
PutInventoryConfigurationRequest & WithInventoryTier(InventoryTier value)
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutInventoryConfigurationRequest & WithDataRetentionDays(int value)
AWS_ACM_API EndpointParameters GetEndpointContextParams() const override
AWS_ACM_API Aws::String SerializePayload() const override
PutInventoryConfigurationRequest & WithStatus(InventoryStatus value)
PutInventoryConfigurationRequest & WithExpiryNotification(ExpiryNotificationT &&value)
const InventoryExpiryNotification & GetExpiryNotification() const
PutInventoryConfigurationRequest & WithRegionalScope(RegionalScopeT &&value)
PutInventoryConfigurationRequest & WithLifecycleManagement(LifecycleManagementT &&value)
PutInventoryConfigurationRequest & WithAccountScope(AccountScopeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String