AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidCampaignStateException.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/connectcampaigns/model/CampaignState.h>
9#include <aws/core/utils/memory/stl/AWSString.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
34 {
35 public:
36 AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException();
37 AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const CampaignState& GetState() const{ return m_state; }
45 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
46 inline void SetState(const CampaignState& value) { m_stateHasBeenSet = true; m_state = value; }
47 inline void SetState(CampaignState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
48 inline InvalidCampaignStateException& WithState(const CampaignState& value) { SetState(value); return *this;}
49 inline InvalidCampaignStateException& WithState(CampaignState&& value) { SetState(std::move(value)); return *this;}
51
53
54 inline const Aws::String& GetMessage() const{ return m_message; }
55 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
56 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
57 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
58 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
59 inline InvalidCampaignStateException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
60 inline InvalidCampaignStateException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 inline InvalidCampaignStateException& WithMessage(const char* value) { SetMessage(value); return *this;}
63
65
66 inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; }
67 inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; }
68 inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; }
69 inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); }
70 inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); }
71 inline InvalidCampaignStateException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;}
72 inline InvalidCampaignStateException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;}
73 inline InvalidCampaignStateException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;}
75 private:
76
77 CampaignState m_state;
78 bool m_stateHasBeenSet = false;
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82
83 Aws::String m_xAmzErrorType;
84 bool m_xAmzErrorTypeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ConnectCampaigns
89} // namespace Aws
InvalidCampaignStateException & WithMessage(Aws::String &&value)
AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException(Aws::Utils::Json::JsonView jsonValue)
InvalidCampaignStateException & WithMessage(const char *value)
InvalidCampaignStateException & WithXAmzErrorType(const Aws::String &value)
InvalidCampaignStateException & WithXAmzErrorType(Aws::String &&value)
InvalidCampaignStateException & WithMessage(const Aws::String &value)
InvalidCampaignStateException & WithState(const CampaignState &value)
InvalidCampaignStateException & WithXAmzErrorType(const char *value)
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
InvalidCampaignStateException & WithState(CampaignState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue