AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
53 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
54 inline GetServiceRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
55 inline GetServiceRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
68 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
69 inline GetServiceRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
70 inline GetServiceRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(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 inline void SetKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
95 inline void SetKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
98 inline GetServiceRequest& AddKeyAttributes(const Aws::String& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
99 inline GetServiceRequest& AddKeyAttributes(Aws::String&& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
100 inline GetServiceRequest& AddKeyAttributes(const Aws::String& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
101 inline GetServiceRequest& AddKeyAttributes(Aws::String&& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), std::move(value)); return *this; }
102 inline GetServiceRequest& AddKeyAttributes(const char* key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
103 inline GetServiceRequest& AddKeyAttributes(Aws::String&& key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
104 inline GetServiceRequest& AddKeyAttributes(const char* key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
106 private:
107
108 Aws::Utils::DateTime m_startTime;
109 bool m_startTimeHasBeenSet = false;
110
111 Aws::Utils::DateTime m_endTime;
112 bool m_endTimeHasBeenSet = false;
113
115 bool m_keyAttributesHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ApplicationSignals
120} // namespace Aws
void SetKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
GetServiceRequest & AddKeyAttributes(Aws::String &&key, const char *value)
GetServiceRequest & AddKeyAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetServiceRequest & WithEndTime(const Aws::Utils::DateTime &value)
AWS_APPLICATIONSIGNALS_API GetServiceRequest()
void SetEndTime(const Aws::Utils::DateTime &value)
GetServiceRequest & WithKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
GetServiceRequest & AddKeyAttributes(const Aws::String &key, const Aws::String &value)
void SetEndTime(Aws::Utils::DateTime &&value)
GetServiceRequest & AddKeyAttributes(Aws::String &&key, const Aws::String &value)
GetServiceRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetServiceRequest & AddKeyAttributes(const char *key, const char *value)
AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
const Aws::Utils::DateTime & GetStartTime() const
void SetStartTime(const Aws::Utils::DateTime &value)
AWS_APPLICATIONSIGNALS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetServiceRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetServiceRequest & WithKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
GetServiceRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
GetServiceRequest & AddKeyAttributes(const Aws::String &key, Aws::String &&value)
GetServiceRequest & AddKeyAttributes(const char *key, Aws::String &&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