AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateReservationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MediaLive
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateReservation"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
66  inline UpdateReservationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
71  inline UpdateReservationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 
76  inline UpdateReservationRequest& WithName(const char* value) { SetName(value); return *this;}
77 
78 
82  inline const Aws::String& GetReservationId() const{ return m_reservationId; }
83 
87  inline bool ReservationIdHasBeenSet() const { return m_reservationIdHasBeenSet; }
88 
92  inline void SetReservationId(const Aws::String& value) { m_reservationIdHasBeenSet = true; m_reservationId = value; }
93 
97  inline void SetReservationId(Aws::String&& value) { m_reservationIdHasBeenSet = true; m_reservationId = std::move(value); }
98 
102  inline void SetReservationId(const char* value) { m_reservationIdHasBeenSet = true; m_reservationId.assign(value); }
103 
107  inline UpdateReservationRequest& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;}
108 
112  inline UpdateReservationRequest& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;}
113 
117  inline UpdateReservationRequest& WithReservationId(const char* value) { SetReservationId(value); return *this;}
118 
119  private:
120 
121  Aws::String m_name;
122  bool m_nameHasBeenSet;
123 
124  Aws::String m_reservationId;
125  bool m_reservationIdHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace MediaLive
130 } // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateReservationRequest & WithName(const Aws::String &value)
UpdateReservationRequest & WithReservationId(const char *value)
UpdateReservationRequest & WithReservationId(Aws::String &&value)
UpdateReservationRequest & WithName(const char *value)
#define AWS_MEDIALIVE_API
UpdateReservationRequest & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateReservationRequest & WithReservationId(const Aws::String &value)