AWS SDK for C++

AWS SDK for C++ Version 1.11.776

Loading...
Searching...
No Matches
StartAutoManagementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/service-quotas/ServiceQuotasRequest.h>
11#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
12#include <aws/service-quotas/model/OptInLevel.h>
13#include <aws/service-quotas/model/OptInType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ServiceQuotas {
19namespace Model {
20
24 public:
25 AWS_SERVICEQUOTAS_API StartAutoManagementRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartAutoManagement"; }
32
33 AWS_SERVICEQUOTAS_API Aws::String SerializePayload() const override;
34
35 AWS_SERVICEQUOTAS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline OptInLevel GetOptInLevel() const { return m_optInLevel; }
43 inline bool OptInLevelHasBeenSet() const { return m_optInLevelHasBeenSet; }
44 inline void SetOptInLevel(OptInLevel value) {
45 m_optInLevelHasBeenSet = true;
46 m_optInLevel = value;
47 }
49 SetOptInLevel(value);
50 return *this;
51 }
53
55
59 inline OptInType GetOptInType() const { return m_optInType; }
60 inline bool OptInTypeHasBeenSet() const { return m_optInTypeHasBeenSet; }
61 inline void SetOptInType(OptInType value) {
62 m_optInTypeHasBeenSet = true;
63 m_optInType = value;
64 }
66 SetOptInType(value);
67 return *this;
68 }
70
72
78 inline const Aws::String& GetNotificationArn() const { return m_notificationArn; }
79 inline bool NotificationArnHasBeenSet() const { return m_notificationArnHasBeenSet; }
80 template <typename NotificationArnT = Aws::String>
81 void SetNotificationArn(NotificationArnT&& value) {
82 m_notificationArnHasBeenSet = true;
83 m_notificationArn = std::forward<NotificationArnT>(value);
84 }
85 template <typename NotificationArnT = Aws::String>
87 SetNotificationArn(std::forward<NotificationArnT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetExclusionList() const { return m_exclusionList; }
99 inline bool ExclusionListHasBeenSet() const { return m_exclusionListHasBeenSet; }
100 template <typename ExclusionListT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
101 void SetExclusionList(ExclusionListT&& value) {
102 m_exclusionListHasBeenSet = true;
103 m_exclusionList = std::forward<ExclusionListT>(value);
104 }
105 template <typename ExclusionListT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
107 SetExclusionList(std::forward<ExclusionListT>(value));
108 return *this;
109 }
110 template <typename ExclusionListKeyT = Aws::String, typename ExclusionListValueT = Aws::Vector<Aws::String>>
111 StartAutoManagementRequest& AddExclusionList(ExclusionListKeyT&& key, ExclusionListValueT&& value) {
112 m_exclusionListHasBeenSet = true;
113 m_exclusionList.emplace(std::forward<ExclusionListKeyT>(key), std::forward<ExclusionListValueT>(value));
114 return *this;
115 }
117 private:
118 OptInLevel m_optInLevel{OptInLevel::NOT_SET};
119
120 OptInType m_optInType{OptInType::NOT_SET};
121
122 Aws::String m_notificationArn;
123
125 bool m_optInLevelHasBeenSet = false;
126 bool m_optInTypeHasBeenSet = false;
127 bool m_notificationArnHasBeenSet = false;
128 bool m_exclusionListHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace ServiceQuotas
133} // namespace Aws
StartAutoManagementRequest & WithNotificationArn(NotificationArnT &&value)
StartAutoManagementRequest & WithOptInType(OptInType value)
AWS_SERVICEQUOTAS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SERVICEQUOTAS_API Aws::String SerializePayload() const override
StartAutoManagementRequest & WithExclusionList(ExclusionListT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetExclusionList() const
StartAutoManagementRequest & WithOptInLevel(OptInLevel value)
AWS_SERVICEQUOTAS_API StartAutoManagementRequest()=default
StartAutoManagementRequest & AddExclusionList(ExclusionListKeyT &&key, ExclusionListValueT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String