AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PromoteRequest.h
1
6#pragma once
7#include <aws/mq/MQ_EXPORTS.h>
8#include <aws/mq/MQRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mq/model/PromoteMode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MQ
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_MQ_API PromoteRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "Promote"; }
36
37 AWS_MQ_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetBrokerId() const { return m_brokerId; }
45 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
46 template<typename BrokerIdT = Aws::String>
47 void SetBrokerId(BrokerIdT&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::forward<BrokerIdT>(value); }
48 template<typename BrokerIdT = Aws::String>
49 PromoteRequest& WithBrokerId(BrokerIdT&& value) { SetBrokerId(std::forward<BrokerIdT>(value)); return *this;}
51
53
57 inline PromoteMode GetMode() const { return m_mode; }
58 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
59 inline void SetMode(PromoteMode value) { m_modeHasBeenSet = true; m_mode = value; }
60 inline PromoteRequest& WithMode(PromoteMode value) { SetMode(value); return *this;}
62 private:
63
64 Aws::String m_brokerId;
65 bool m_brokerIdHasBeenSet = false;
66
68 bool m_modeHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace MQ
73} // 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