AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SuccessfulCampaignStateResponse.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectcampaigns/model/CampaignState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCampaigns
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECTCAMPAIGNS_API SuccessfulCampaignStateResponse();
38 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::String& GetCampaignId() const{ return m_campaignId; }
44 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
45 inline void SetCampaignId(const Aws::String& value) { m_campaignIdHasBeenSet = true; m_campaignId = value; }
46 inline void SetCampaignId(Aws::String&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::move(value); }
47 inline void SetCampaignId(const char* value) { m_campaignIdHasBeenSet = true; m_campaignId.assign(value); }
48 inline SuccessfulCampaignStateResponse& WithCampaignId(const Aws::String& value) { SetCampaignId(value); return *this;}
49 inline SuccessfulCampaignStateResponse& WithCampaignId(Aws::String&& value) { SetCampaignId(std::move(value)); return *this;}
50 inline SuccessfulCampaignStateResponse& WithCampaignId(const char* value) { SetCampaignId(value); return *this;}
52
54
55 inline const CampaignState& GetState() const{ return m_state; }
56 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
57 inline void SetState(const CampaignState& value) { m_stateHasBeenSet = true; m_state = value; }
58 inline void SetState(CampaignState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
59 inline SuccessfulCampaignStateResponse& WithState(const CampaignState& value) { SetState(value); return *this;}
60 inline SuccessfulCampaignStateResponse& WithState(CampaignState&& value) { SetState(std::move(value)); return *this;}
62 private:
63
64 Aws::String m_campaignId;
65 bool m_campaignIdHasBeenSet = false;
66
67 CampaignState m_state;
68 bool m_stateHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace ConnectCampaigns
73} // namespace Aws
SuccessfulCampaignStateResponse & WithState(const CampaignState &value)
AWS_CONNECTCAMPAIGNS_API SuccessfulCampaignStateResponse(Aws::Utils::Json::JsonView jsonValue)
SuccessfulCampaignStateResponse & WithCampaignId(const char *value)
SuccessfulCampaignStateResponse & WithCampaignId(Aws::String &&value)
AWS_CONNECTCAMPAIGNS_API SuccessfulCampaignStateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
SuccessfulCampaignStateResponse & WithCampaignId(const Aws::String &value)
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
SuccessfulCampaignStateResponse & WithState(CampaignState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue