AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateHoursOfOperationRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/HoursOfOperationConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
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 "UpdateHoursOfOperation"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline UpdateHoursOfOperationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline UpdateHoursOfOperationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline UpdateHoursOfOperationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline const Aws::String& GetHoursOfOperationId() const{ return m_hoursOfOperationId; }
58 inline bool HoursOfOperationIdHasBeenSet() const { return m_hoursOfOperationIdHasBeenSet; }
59 inline void SetHoursOfOperationId(const Aws::String& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = value; }
60 inline void SetHoursOfOperationId(Aws::String&& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = std::move(value); }
61 inline void SetHoursOfOperationId(const char* value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId.assign(value); }
64 inline UpdateHoursOfOperationRequest& WithHoursOfOperationId(const char* value) { SetHoursOfOperationId(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline UpdateHoursOfOperationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline UpdateHoursOfOperationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline UpdateHoursOfOperationRequest& WithName(const char* value) { SetName(value); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline UpdateHoursOfOperationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline UpdateHoursOfOperationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline UpdateHoursOfOperationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
99 inline const Aws::String& GetTimeZone() const{ return m_timeZone; }
100 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
101 inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
102 inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
103 inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); }
104 inline UpdateHoursOfOperationRequest& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;}
105 inline UpdateHoursOfOperationRequest& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;}
106 inline UpdateHoursOfOperationRequest& WithTimeZone(const char* value) { SetTimeZone(value); return *this;}
108
110
113 inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const{ return m_config; }
114 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
115 inline void SetConfig(const Aws::Vector<HoursOfOperationConfig>& value) { m_configHasBeenSet = true; m_config = value; }
116 inline void SetConfig(Aws::Vector<HoursOfOperationConfig>&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
119 inline UpdateHoursOfOperationRequest& AddConfig(const HoursOfOperationConfig& value) { m_configHasBeenSet = true; m_config.push_back(value); return *this; }
120 inline UpdateHoursOfOperationRequest& AddConfig(HoursOfOperationConfig&& value) { m_configHasBeenSet = true; m_config.push_back(std::move(value)); return *this; }
122 private:
123
124 Aws::String m_instanceId;
125 bool m_instanceIdHasBeenSet = false;
126
127 Aws::String m_hoursOfOperationId;
128 bool m_hoursOfOperationIdHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 Aws::String m_timeZone;
137 bool m_timeZoneHasBeenSet = false;
138
140 bool m_configHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Connect
145} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateHoursOfOperationRequest & AddConfig(HoursOfOperationConfig &&value)
void SetConfig(Aws::Vector< HoursOfOperationConfig > &&value)
UpdateHoursOfOperationRequest & WithHoursOfOperationId(Aws::String &&value)
UpdateHoursOfOperationRequest & WithInstanceId(const Aws::String &value)
UpdateHoursOfOperationRequest & WithName(Aws::String &&value)
UpdateHoursOfOperationRequest & WithInstanceId(Aws::String &&value)
UpdateHoursOfOperationRequest & WithDescription(const char *value)
UpdateHoursOfOperationRequest & WithDescription(const Aws::String &value)
UpdateHoursOfOperationRequest & WithHoursOfOperationId(const char *value)
UpdateHoursOfOperationRequest & WithTimeZone(Aws::String &&value)
UpdateHoursOfOperationRequest & AddConfig(const HoursOfOperationConfig &value)
UpdateHoursOfOperationRequest & WithName(const Aws::String &value)
UpdateHoursOfOperationRequest & WithName(const char *value)
UpdateHoursOfOperationRequest & WithDescription(Aws::String &&value)
UpdateHoursOfOperationRequest & WithConfig(Aws::Vector< HoursOfOperationConfig > &&value)
UpdateHoursOfOperationRequest & WithTimeZone(const char *value)
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
UpdateHoursOfOperationRequest & WithHoursOfOperationId(const Aws::String &value)
void SetConfig(const Aws::Vector< HoursOfOperationConfig > &value)
UpdateHoursOfOperationRequest & WithInstanceId(const char *value)
UpdateHoursOfOperationRequest & WithTimeZone(const Aws::String &value)
UpdateHoursOfOperationRequest & WithConfig(const Aws::Vector< HoursOfOperationConfig > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector