AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetProtectionStatusRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fms/FMSRequest.h>
10#include <aws/fms/FMS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace FMS {
16namespace Model {
17
21 public:
22 AWS_FMS_API GetProtectionStatusRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetProtectionStatus"; }
29
30 AWS_FMS_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetPolicyId() const { return m_policyId; }
39 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
40 template <typename PolicyIdT = Aws::String>
41 void SetPolicyId(PolicyIdT&& value) {
42 m_policyIdHasBeenSet = true;
43 m_policyId = std::forward<PolicyIdT>(value);
44 }
45 template <typename PolicyIdT = Aws::String>
47 SetPolicyId(std::forward<PolicyIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetMemberAccountId() const { return m_memberAccountId; }
58 inline bool MemberAccountIdHasBeenSet() const { return m_memberAccountIdHasBeenSet; }
59 template <typename MemberAccountIdT = Aws::String>
60 void SetMemberAccountId(MemberAccountIdT&& value) {
61 m_memberAccountIdHasBeenSet = true;
62 m_memberAccountId = std::forward<MemberAccountIdT>(value);
63 }
64 template <typename MemberAccountIdT = Aws::String>
66 SetMemberAccountId(std::forward<MemberAccountIdT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
80 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
81 template <typename StartTimeT = Aws::Utils::DateTime>
82 void SetStartTime(StartTimeT&& value) {
83 m_startTimeHasBeenSet = true;
84 m_startTime = std::forward<StartTimeT>(value);
85 }
86 template <typename StartTimeT = Aws::Utils::DateTime>
88 SetStartTime(std::forward<StartTimeT>(value));
89 return *this;
90 }
92
94
101 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
102 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
103 template <typename EndTimeT = Aws::Utils::DateTime>
104 void SetEndTime(EndTimeT&& value) {
105 m_endTimeHasBeenSet = true;
106 m_endTime = std::forward<EndTimeT>(value);
107 }
108 template <typename EndTimeT = Aws::Utils::DateTime>
110 SetEndTime(std::forward<EndTimeT>(value));
111 return *this;
112 }
114
116
125 inline const Aws::String& GetNextToken() const { return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 template <typename NextTokenT = Aws::String>
128 void SetNextToken(NextTokenT&& value) {
129 m_nextTokenHasBeenSet = true;
130 m_nextToken = std::forward<NextTokenT>(value);
131 }
132 template <typename NextTokenT = Aws::String>
134 SetNextToken(std::forward<NextTokenT>(value));
135 return *this;
136 }
138
140
146 inline int GetMaxResults() const { return m_maxResults; }
147 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
148 inline void SetMaxResults(int value) {
149 m_maxResultsHasBeenSet = true;
150 m_maxResults = value;
151 }
153 SetMaxResults(value);
154 return *this;
155 }
157 private:
158 Aws::String m_policyId;
159
160 Aws::String m_memberAccountId;
161
162 Aws::Utils::DateTime m_startTime{};
163
164 Aws::Utils::DateTime m_endTime{};
165
166 Aws::String m_nextToken;
167
168 int m_maxResults{0};
169 bool m_policyIdHasBeenSet = false;
170 bool m_memberAccountIdHasBeenSet = false;
171 bool m_startTimeHasBeenSet = false;
172 bool m_endTimeHasBeenSet = false;
173 bool m_nextTokenHasBeenSet = false;
174 bool m_maxResultsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace FMS
179} // namespace Aws
GetProtectionStatusRequest & WithEndTime(EndTimeT &&value)
virtual const char * GetServiceRequestName() const override
GetProtectionStatusRequest & WithMaxResults(int value)
AWS_FMS_API GetProtectionStatusRequest()=default
GetProtectionStatusRequest & WithNextToken(NextTokenT &&value)
AWS_FMS_API Aws::String SerializePayload() const override
GetProtectionStatusRequest & WithPolicyId(PolicyIdT &&value)
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetEndTime() const
GetProtectionStatusRequest & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetProtectionStatusRequest & WithMemberAccountId(MemberAccountIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String