AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBrokerId(const Aws::String& value) { m_brokerIdHasBeenSet = true; m_brokerId = value; }
47 inline void SetBrokerId(Aws::String&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::move(value); }
48 inline void SetBrokerId(const char* value) { m_brokerIdHasBeenSet = true; m_brokerId.assign(value); }
49 inline PromoteRequest& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;}
50 inline PromoteRequest& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;}
51 inline PromoteRequest& WithBrokerId(const char* value) { SetBrokerId(value); return *this;}
53
55
59 inline const PromoteMode& GetMode() const{ return m_mode; }
60 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
61 inline void SetMode(const PromoteMode& value) { m_modeHasBeenSet = true; m_mode = value; }
62 inline void SetMode(PromoteMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
63 inline PromoteRequest& WithMode(const PromoteMode& value) { SetMode(value); return *this;}
64 inline PromoteRequest& WithMode(PromoteMode&& value) { SetMode(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_brokerId;
69 bool m_brokerIdHasBeenSet = false;
70
71 PromoteMode m_mode;
72 bool m_modeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace MQ
77} // namespace Aws
PromoteRequest & WithMode(const PromoteMode &value)
PromoteRequest & WithMode(PromoteMode &&value)
const PromoteMode & GetMode() const
AWS_MQ_API Aws::String SerializePayload() const override
void SetBrokerId(const Aws::String &value)
void SetMode(const PromoteMode &value)
void SetBrokerId(const char *value)
PromoteRequest & WithBrokerId(const char *value)
virtual const char * GetServiceRequestName() const override
PromoteRequest & WithBrokerId(const Aws::String &value)
PromoteRequest & WithBrokerId(Aws::String &&value)
const Aws::String & GetBrokerId() const
void SetBrokerId(Aws::String &&value)
void SetMode(PromoteMode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String