AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetServiceRequest.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/ApplicationSignalsRequest.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#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace ApplicationSignals
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_APPLICATIONSIGNALS_API GetServiceRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetService"; }
37
38 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
39
40 AWS_APPLICATIONSIGNALS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
50 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
51 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
52 template<typename StartTimeT = Aws::Utils::DateTime>
53 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
54 template<typename StartTimeT = Aws::Utils::DateTime>
55 GetServiceRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
57
59
65 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
66 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
67 template<typename EndTimeT = Aws::Utils::DateTime>
68 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
69 template<typename EndTimeT = Aws::Utils::DateTime>
70 GetServiceRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
72
74
92 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
93 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
94 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
95 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
96 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
97 GetServiceRequest& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
98 template<typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
99 GetServiceRequest& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
100 m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value)); return *this;
101 }
103 private:
104
105 Aws::Utils::DateTime m_startTime{};
106 bool m_startTimeHasBeenSet = false;
107
108 Aws::Utils::DateTime m_endTime{};
109 bool m_endTimeHasBeenSet = false;
110
112 bool m_keyAttributesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ApplicationSignals
117} // 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