AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
GetServiceRequest.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignalsRequest.h>
8#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace ApplicationSignals {
20namespace Model {
21
25 public:
26 AWS_APPLICATIONSIGNALS_API GetServiceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetService"; }
33
34 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
35
36 AWS_APPLICATIONSIGNALS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
45 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
46 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
47 template <typename StartTimeT = Aws::Utils::DateTime>
48 void SetStartTime(StartTimeT&& value) {
49 m_startTimeHasBeenSet = true;
50 m_startTime = std::forward<StartTimeT>(value);
51 }
52 template <typename StartTimeT = Aws::Utils::DateTime>
53 GetServiceRequest& WithStartTime(StartTimeT&& value) {
54 SetStartTime(std::forward<StartTimeT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
67 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
68 template <typename EndTimeT = Aws::Utils::DateTime>
69 void SetEndTime(EndTimeT&& value) {
70 m_endTimeHasBeenSet = true;
71 m_endTime = std::forward<EndTimeT>(value);
72 }
73 template <typename EndTimeT = Aws::Utils::DateTime>
74 GetServiceRequest& WithEndTime(EndTimeT&& value) {
75 SetEndTime(std::forward<EndTimeT>(value));
76 return *this;
77 }
79
81
99 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
100 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
101 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
102 void SetKeyAttributes(KeyAttributesT&& value) {
103 m_keyAttributesHasBeenSet = true;
104 m_keyAttributes = std::forward<KeyAttributesT>(value);
105 }
106 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
107 GetServiceRequest& WithKeyAttributes(KeyAttributesT&& value) {
108 SetKeyAttributes(std::forward<KeyAttributesT>(value));
109 return *this;
110 }
111 template <typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
112 GetServiceRequest& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
113 m_keyAttributesHasBeenSet = true;
114 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::Utils::DateTime m_startTime{};
120 bool m_startTimeHasBeenSet = false;
121
122 Aws::Utils::DateTime m_endTime{};
123 bool m_endTimeHasBeenSet = false;
124
126 bool m_keyAttributesHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace ApplicationSignals
131} // namespace Aws
const Aws::Utils::DateTime & GetEndTime() const
GetServiceRequest & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
AWS_APPLICATIONSIGNALS_API GetServiceRequest()=default
AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
GetServiceRequest & WithKeyAttributes(KeyAttributesT &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_APPLICATIONSIGNALS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
GetServiceRequest & WithEndTime(EndTimeT &&value)
GetServiceRequest & WithStartTime(StartTimeT &&value)
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