AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PromoteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mq/MQRequest.h>
9#include <aws/mq/MQ_EXPORTS.h>
10#include <aws/mq/model/PromoteMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MQ {
16namespace Model {
17
24class PromoteRequest : public MQRequest {
25 public:
26 AWS_MQ_API PromoteRequest() = default;
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 "Promote"; }
33
34 AWS_MQ_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetBrokerId() const { return m_brokerId; }
41 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
42 template <typename BrokerIdT = Aws::String>
43 void SetBrokerId(BrokerIdT&& value) {
44 m_brokerIdHasBeenSet = true;
45 m_brokerId = std::forward<BrokerIdT>(value);
46 }
47 template <typename BrokerIdT = Aws::String>
48 PromoteRequest& WithBrokerId(BrokerIdT&& value) {
49 SetBrokerId(std::forward<BrokerIdT>(value));
50 return *this;
51 }
53
55
59 inline PromoteMode GetMode() const { return m_mode; }
60 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
61 inline void SetMode(PromoteMode value) {
62 m_modeHasBeenSet = true;
63 m_mode = value;
64 }
66 SetMode(value);
67 return *this;
68 }
70 private:
71 Aws::String m_brokerId;
72
74 bool m_brokerIdHasBeenSet = false;
75 bool m_modeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace MQ
80} // namespace Aws
void SetMode(PromoteMode value)
AWS_MQ_API Aws::String SerializePayload() const override
AWS_MQ_API PromoteRequest()=default
void SetBrokerId(BrokerIdT &&value)
PromoteRequest & WithBrokerId(BrokerIdT &&value)
PromoteRequest & WithMode(PromoteMode value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetBrokerId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String