AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateReservationRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/model/RenewalSettings.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MediaLive
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_MEDIALIVE_API UpdateReservationRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateReservation"; }
35
36 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline UpdateReservationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline UpdateReservationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline UpdateReservationRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const RenewalSettings& GetRenewalSettings() const{ return m_renewalSettings; }
58 inline bool RenewalSettingsHasBeenSet() const { return m_renewalSettingsHasBeenSet; }
59 inline void SetRenewalSettings(const RenewalSettings& value) { m_renewalSettingsHasBeenSet = true; m_renewalSettings = value; }
60 inline void SetRenewalSettings(RenewalSettings&& value) { m_renewalSettingsHasBeenSet = true; m_renewalSettings = std::move(value); }
62 inline UpdateReservationRequest& WithRenewalSettings(RenewalSettings&& value) { SetRenewalSettings(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetReservationId() const{ return m_reservationId; }
70 inline bool ReservationIdHasBeenSet() const { return m_reservationIdHasBeenSet; }
71 inline void SetReservationId(const Aws::String& value) { m_reservationIdHasBeenSet = true; m_reservationId = value; }
72 inline void SetReservationId(Aws::String&& value) { m_reservationIdHasBeenSet = true; m_reservationId = std::move(value); }
73 inline void SetReservationId(const char* value) { m_reservationIdHasBeenSet = true; m_reservationId.assign(value); }
74 inline UpdateReservationRequest& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;}
75 inline UpdateReservationRequest& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;}
76 inline UpdateReservationRequest& WithReservationId(const char* value) { SetReservationId(value); return *this;}
78 private:
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
83 RenewalSettings m_renewalSettings;
84 bool m_renewalSettingsHasBeenSet = false;
85
86 Aws::String m_reservationId;
87 bool m_reservationIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace MediaLive
92} // namespace Aws
UpdateReservationRequest & WithName(Aws::String &&value)
void SetRenewalSettings(const RenewalSettings &value)
UpdateReservationRequest & WithRenewalSettings(const RenewalSettings &value)
UpdateReservationRequest & WithReservationId(const Aws::String &value)
UpdateReservationRequest & WithName(const char *value)
UpdateReservationRequest & WithReservationId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateReservationRequest & WithReservationId(Aws::String &&value)
UpdateReservationRequest & WithRenewalSettings(RenewalSettings &&value)
UpdateReservationRequest & WithName(const Aws::String &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String