AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
45 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
46 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
47 inline GetProtectionStatusRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
48 inline GetProtectionStatusRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
49 inline GetProtectionStatusRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
51
53
57 inline const Aws::String& GetMemberAccountId() const{ return m_memberAccountId; }
58 inline bool MemberAccountIdHasBeenSet() const { return m_memberAccountIdHasBeenSet; }
59 inline void SetMemberAccountId(const Aws::String& value) { m_memberAccountIdHasBeenSet = true; m_memberAccountId = value; }
60 inline void SetMemberAccountId(Aws::String&& value) { m_memberAccountIdHasBeenSet = true; m_memberAccountId = std::move(value); }
61 inline void SetMemberAccountId(const char* value) { m_memberAccountIdHasBeenSet = true; m_memberAccountId.assign(value); }
63 inline GetProtectionStatusRequest& WithMemberAccountId(Aws::String&& value) { SetMemberAccountId(std::move(value)); return *this;}
64 inline GetProtectionStatusRequest& WithMemberAccountId(const char* value) { SetMemberAccountId(value); return *this;}
66
68
75 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
76 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
77 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
78 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
79 inline GetProtectionStatusRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
80 inline GetProtectionStatusRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
82
84
91 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
92 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
93 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
94 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
95 inline GetProtectionStatusRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
96 inline GetProtectionStatusRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
98
100
109 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
112 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
113 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
114 inline GetProtectionStatusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
115 inline GetProtectionStatusRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 inline GetProtectionStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
118
120
126 inline int GetMaxResults() const{ return m_maxResults; }
127 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
128 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
129 inline GetProtectionStatusRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
131 private:
132
133 Aws::String m_policyId;
134 bool m_policyIdHasBeenSet = false;
135
136 Aws::String m_memberAccountId;
137 bool m_memberAccountIdHasBeenSet = false;
138
139 Aws::Utils::DateTime m_startTime;
140 bool m_startTimeHasBeenSet = false;
141
142 Aws::Utils::DateTime m_endTime;
143 bool m_endTimeHasBeenSet = false;
144
145 Aws::String m_nextToken;
146 bool m_nextTokenHasBeenSet = false;
147
148 int m_maxResults;
149 bool m_maxResultsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace FMS
154} // namespace Aws
GetProtectionStatusRequest & WithStartTime(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
GetProtectionStatusRequest & WithMaxResults(int value)
GetProtectionStatusRequest & WithMemberAccountId(const Aws::String &value)
GetProtectionStatusRequest & WithMemberAccountId(Aws::String &&value)
GetProtectionStatusRequest & WithEndTime(Aws::Utils::DateTime &&value)
AWS_FMS_API Aws::String SerializePayload() const override
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
GetProtectionStatusRequest & WithPolicyId(const char *value)
GetProtectionStatusRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetProtectionStatusRequest & WithEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
GetProtectionStatusRequest & WithPolicyId(Aws::String &&value)
GetProtectionStatusRequest & WithMemberAccountId(const char *value)
GetProtectionStatusRequest & WithNextToken(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
GetProtectionStatusRequest & WithNextToken(Aws::String &&value)
GetProtectionStatusRequest & WithPolicyId(const Aws::String &value)
GetProtectionStatusRequest & WithNextToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String