AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaigns {
21namespace Model {
22
30 public:
31 AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException() = default;
32 AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline CampaignState GetState() const { return m_state; }
39 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
40 inline void SetState(CampaignState value) {
41 m_stateHasBeenSet = true;
42 m_state = value;
43 }
45 SetState(value);
46 return *this;
47 }
49
51
52 inline const Aws::String& GetMessage() const { return m_message; }
53 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
54 template <typename MessageT = Aws::String>
55 void SetMessage(MessageT&& value) {
56 m_messageHasBeenSet = true;
57 m_message = std::forward<MessageT>(value);
58 }
59 template <typename MessageT = Aws::String>
61 SetMessage(std::forward<MessageT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetXAmzErrorType() const { return m_xAmzErrorType; }
69 inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; }
70 template <typename XAmzErrorTypeT = Aws::String>
71 void SetXAmzErrorType(XAmzErrorTypeT&& value) {
72 m_xAmzErrorTypeHasBeenSet = true;
73 m_xAmzErrorType = std::forward<XAmzErrorTypeT>(value);
74 }
75 template <typename XAmzErrorTypeT = Aws::String>
77 SetXAmzErrorType(std::forward<XAmzErrorTypeT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::String m_message;
85
86 Aws::String m_xAmzErrorType;
87 bool m_stateHasBeenSet = false;
88 bool m_messageHasBeenSet = false;
89 bool m_xAmzErrorTypeHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ConnectCampaigns
94} // namespace Aws
AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException & operator=(Aws::Utils::Json::JsonView jsonValue)
InvalidCampaignStateException & WithXAmzErrorType(XAmzErrorTypeT &&value)
AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException(Aws::Utils::Json::JsonView jsonValue)
InvalidCampaignStateException & WithState(CampaignState value)
AWS_CONNECTCAMPAIGNS_API InvalidCampaignStateException()=default
InvalidCampaignStateException & WithMessage(MessageT &&value)
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue