AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetResourceConfigHistoryRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/config/model/ResourceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/config/model/ChronologicalOrder.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ConfigService
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_CONFIGSERVICE_API GetResourceConfigHistoryRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetResourceConfigHistory"; }
38
39 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline ResourceType GetResourceType() const { return m_resourceType; }
49 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template<typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
62 template<typename ResourceIdT = Aws::String>
63 GetResourceConfigHistoryRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
65
67
71 inline const Aws::Utils::DateTime& GetLaterTime() const { return m_laterTime; }
72 inline bool LaterTimeHasBeenSet() const { return m_laterTimeHasBeenSet; }
73 template<typename LaterTimeT = Aws::Utils::DateTime>
74 void SetLaterTime(LaterTimeT&& value) { m_laterTimeHasBeenSet = true; m_laterTime = std::forward<LaterTimeT>(value); }
75 template<typename LaterTimeT = Aws::Utils::DateTime>
76 GetResourceConfigHistoryRequest& WithLaterTime(LaterTimeT&& value) { SetLaterTime(std::forward<LaterTimeT>(value)); return *this;}
78
80
86 inline const Aws::Utils::DateTime& GetEarlierTime() const { return m_earlierTime; }
87 inline bool EarlierTimeHasBeenSet() const { return m_earlierTimeHasBeenSet; }
88 template<typename EarlierTimeT = Aws::Utils::DateTime>
89 void SetEarlierTime(EarlierTimeT&& value) { m_earlierTimeHasBeenSet = true; m_earlierTime = std::forward<EarlierTimeT>(value); }
90 template<typename EarlierTimeT = Aws::Utils::DateTime>
91 GetResourceConfigHistoryRequest& WithEarlierTime(EarlierTimeT&& value) { SetEarlierTime(std::forward<EarlierTimeT>(value)); return *this;}
93
95
99 inline ChronologicalOrder GetChronologicalOrder() const { return m_chronologicalOrder; }
100 inline bool ChronologicalOrderHasBeenSet() const { return m_chronologicalOrderHasBeenSet; }
101 inline void SetChronologicalOrder(ChronologicalOrder value) { m_chronologicalOrderHasBeenSet = true; m_chronologicalOrder = value; }
104
106
111 inline int GetLimit() const { return m_limit; }
112 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
113 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
114 inline GetResourceConfigHistoryRequest& WithLimit(int value) { SetLimit(value); return *this;}
116
118
122 inline const Aws::String& GetNextToken() const { return m_nextToken; }
123 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
124 template<typename NextTokenT = Aws::String>
125 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
126 template<typename NextTokenT = Aws::String>
127 GetResourceConfigHistoryRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
129 private:
130
131 ResourceType m_resourceType{ResourceType::NOT_SET};
132 bool m_resourceTypeHasBeenSet = false;
133
134 Aws::String m_resourceId;
135 bool m_resourceIdHasBeenSet = false;
136
137 Aws::Utils::DateTime m_laterTime{};
138 bool m_laterTimeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_earlierTime{};
141 bool m_earlierTimeHasBeenSet = false;
142
144 bool m_chronologicalOrderHasBeenSet = false;
145
146 int m_limit{0};
147 bool m_limitHasBeenSet = false;
148
149 Aws::String m_nextToken;
150 bool m_nextTokenHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace ConfigService
155} // namespace Aws
GetResourceConfigHistoryRequest & WithLaterTime(LaterTimeT &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONFIGSERVICE_API GetResourceConfigHistoryRequest()=default
GetResourceConfigHistoryRequest & WithResourceId(ResourceIdT &&value)
GetResourceConfigHistoryRequest & WithResourceType(ResourceType value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
GetResourceConfigHistoryRequest & WithNextToken(NextTokenT &&value)
GetResourceConfigHistoryRequest & WithEarlierTime(EarlierTimeT &&value)
GetResourceConfigHistoryRequest & WithChronologicalOrder(ChronologicalOrder value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String