AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetProtectionStatusRequest.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace FMS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_FMS_API GetProtectionStatusRequest() = 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 "GetProtectionStatus"; }
32
33 AWS_FMS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetPolicyId() const { return m_policyId; }
43 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
44 template<typename PolicyIdT = Aws::String>
45 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
46 template<typename PolicyIdT = Aws::String>
47 GetProtectionStatusRequest& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
49
51
55 inline const Aws::String& GetMemberAccountId() const { return m_memberAccountId; }
56 inline bool MemberAccountIdHasBeenSet() const { return m_memberAccountIdHasBeenSet; }
57 template<typename MemberAccountIdT = Aws::String>
58 void SetMemberAccountId(MemberAccountIdT&& value) { m_memberAccountIdHasBeenSet = true; m_memberAccountId = std::forward<MemberAccountIdT>(value); }
59 template<typename MemberAccountIdT = Aws::String>
60 GetProtectionStatusRequest& WithMemberAccountId(MemberAccountIdT&& value) { SetMemberAccountId(std::forward<MemberAccountIdT>(value)); return *this;}
62
64
71 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
72 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
73 template<typename StartTimeT = Aws::Utils::DateTime>
74 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
75 template<typename StartTimeT = Aws::Utils::DateTime>
76 GetProtectionStatusRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
78
80
87 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
88 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
91 template<typename EndTimeT = Aws::Utils::DateTime>
92 GetProtectionStatusRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
94
96
105 inline const Aws::String& GetNextToken() const { return m_nextToken; }
106 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
107 template<typename NextTokenT = Aws::String>
108 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
109 template<typename NextTokenT = Aws::String>
110 GetProtectionStatusRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
112
114
120 inline int GetMaxResults() const { return m_maxResults; }
121 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
122 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
123 inline GetProtectionStatusRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
125 private:
126
127 Aws::String m_policyId;
128 bool m_policyIdHasBeenSet = false;
129
130 Aws::String m_memberAccountId;
131 bool m_memberAccountIdHasBeenSet = false;
132
133 Aws::Utils::DateTime m_startTime{};
134 bool m_startTimeHasBeenSet = false;
135
136 Aws::Utils::DateTime m_endTime{};
137 bool m_endTimeHasBeenSet = false;
138
139 Aws::String m_nextToken;
140 bool m_nextTokenHasBeenSet = false;
141
142 int m_maxResults{0};
143 bool m_maxResultsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace FMS
148} // 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