AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetCalendarStateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSM {
16namespace Model {
17
21 public:
22 AWS_SSM_API GetCalendarStateRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetCalendarState"; }
29
30 AWS_SSM_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
41 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
42 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
43 void SetCalendarNames(CalendarNamesT&& value) {
44 m_calendarNamesHasBeenSet = true;
45 m_calendarNames = std::forward<CalendarNamesT>(value);
46 }
47 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
48 GetCalendarStateRequest& WithCalendarNames(CalendarNamesT&& value) {
49 SetCalendarNames(std::forward<CalendarNamesT>(value));
50 return *this;
51 }
52 template <typename CalendarNamesT = Aws::String>
53 GetCalendarStateRequest& AddCalendarNames(CalendarNamesT&& value) {
54 m_calendarNamesHasBeenSet = true;
55 m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::String& GetAtTime() const { return m_atTime; }
68 inline bool AtTimeHasBeenSet() const { return m_atTimeHasBeenSet; }
69 template <typename AtTimeT = Aws::String>
70 void SetAtTime(AtTimeT&& value) {
71 m_atTimeHasBeenSet = true;
72 m_atTime = std::forward<AtTimeT>(value);
73 }
74 template <typename AtTimeT = Aws::String>
76 SetAtTime(std::forward<AtTimeT>(value));
77 return *this;
78 }
80 private:
81 Aws::Vector<Aws::String> m_calendarNames;
82
83 Aws::String m_atTime;
84 bool m_calendarNamesHasBeenSet = false;
85 bool m_atTimeHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace SSM
90} // namespace Aws
GetCalendarStateRequest & AddCalendarNames(CalendarNamesT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
GetCalendarStateRequest & WithAtTime(AtTimeT &&value)
const Aws::Vector< Aws::String > & GetCalendarNames() const
AWS_SSM_API GetCalendarStateRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetCalendarStateRequest & WithCalendarNames(CalendarNamesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector