AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseOfferingRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/MediaConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace MediaConnect
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_MEDIACONNECT_API PurchaseOfferingRequest();
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 "PurchaseOffering"; }
34
35 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetOfferingArn() const{ return m_offeringArn; }
43 inline bool OfferingArnHasBeenSet() const { return m_offeringArnHasBeenSet; }
44 inline void SetOfferingArn(const Aws::String& value) { m_offeringArnHasBeenSet = true; m_offeringArn = value; }
45 inline void SetOfferingArn(Aws::String&& value) { m_offeringArnHasBeenSet = true; m_offeringArn = std::move(value); }
46 inline void SetOfferingArn(const char* value) { m_offeringArnHasBeenSet = true; m_offeringArn.assign(value); }
47 inline PurchaseOfferingRequest& WithOfferingArn(const Aws::String& value) { SetOfferingArn(value); return *this;}
48 inline PurchaseOfferingRequest& WithOfferingArn(Aws::String&& value) { SetOfferingArn(std::move(value)); return *this;}
49 inline PurchaseOfferingRequest& WithOfferingArn(const char* value) { SetOfferingArn(value); return *this;}
51
53
56 inline const Aws::String& GetReservationName() const{ return m_reservationName; }
57 inline bool ReservationNameHasBeenSet() const { return m_reservationNameHasBeenSet; }
58 inline void SetReservationName(const Aws::String& value) { m_reservationNameHasBeenSet = true; m_reservationName = value; }
59 inline void SetReservationName(Aws::String&& value) { m_reservationNameHasBeenSet = true; m_reservationName = std::move(value); }
60 inline void SetReservationName(const char* value) { m_reservationNameHasBeenSet = true; m_reservationName.assign(value); }
61 inline PurchaseOfferingRequest& WithReservationName(const Aws::String& value) { SetReservationName(value); return *this;}
62 inline PurchaseOfferingRequest& WithReservationName(Aws::String&& value) { SetReservationName(std::move(value)); return *this;}
63 inline PurchaseOfferingRequest& WithReservationName(const char* value) { SetReservationName(value); return *this;}
65
67
75 inline const Aws::String& GetStart() const{ return m_start; }
76 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
77 inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; }
78 inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
79 inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); }
80 inline PurchaseOfferingRequest& WithStart(const Aws::String& value) { SetStart(value); return *this;}
81 inline PurchaseOfferingRequest& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
82 inline PurchaseOfferingRequest& WithStart(const char* value) { SetStart(value); return *this;}
84 private:
85
86 Aws::String m_offeringArn;
87 bool m_offeringArnHasBeenSet = false;
88
89 Aws::String m_reservationName;
90 bool m_reservationNameHasBeenSet = false;
91
92 Aws::String m_start;
93 bool m_startHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace MediaConnect
98} // namespace Aws
PurchaseOfferingRequest & WithStart(Aws::String &&value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
PurchaseOfferingRequest & WithReservationName(const char *value)
PurchaseOfferingRequest & WithReservationName(Aws::String &&value)
PurchaseOfferingRequest & WithOfferingArn(Aws::String &&value)
PurchaseOfferingRequest & WithStart(const char *value)
PurchaseOfferingRequest & WithOfferingArn(const Aws::String &value)
PurchaseOfferingRequest & WithStart(const Aws::String &value)
PurchaseOfferingRequest & WithReservationName(const Aws::String &value)
PurchaseOfferingRequest & WithOfferingArn(const char *value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String