AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
FailedCampaignStateResponse.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/connectcampaigns/model/GetCampaignStateBatchFailureCode.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
29 public:
30 AWS_CONNECTCAMPAIGNS_API FailedCampaignStateResponse() = default;
31 AWS_CONNECTCAMPAIGNS_API FailedCampaignStateResponse(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetCampaignId() const { return m_campaignId; }
38 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
39 template <typename CampaignIdT = Aws::String>
40 void SetCampaignId(CampaignIdT&& value) {
41 m_campaignIdHasBeenSet = true;
42 m_campaignId = std::forward<CampaignIdT>(value);
43 }
44 template <typename CampaignIdT = Aws::String>
46 SetCampaignId(std::forward<CampaignIdT>(value));
47 return *this;
48 }
50
52
53 inline GetCampaignStateBatchFailureCode GetFailureCode() const { return m_failureCode; }
54 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
56 m_failureCodeHasBeenSet = true;
57 m_failureCode = value;
58 }
60 SetFailureCode(value);
61 return *this;
62 }
64 private:
65 Aws::String m_campaignId;
66
68 bool m_campaignIdHasBeenSet = false;
69 bool m_failureCodeHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace ConnectCampaigns
74} // namespace Aws
FailedCampaignStateResponse & WithFailureCode(GetCampaignStateBatchFailureCode value)
AWS_CONNECTCAMPAIGNS_API FailedCampaignStateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFailureCode(GetCampaignStateBatchFailureCode value)
AWS_CONNECTCAMPAIGNS_API FailedCampaignStateResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNS_API FailedCampaignStateResponse()=default
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
FailedCampaignStateResponse & WithCampaignId(CampaignIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue