AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FailedRequest.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/FailureCode.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 FailedRequest() = default;
37 AWS_CONNECTCAMPAIGNS_API FailedRequest(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCAMPAIGNS_API FailedRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template<typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
48 template<typename ClientTokenT = Aws::String>
49 FailedRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
51
53
54 inline const Aws::String& GetId() const { return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 template<typename IdT = Aws::String>
57 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
58 template<typename IdT = Aws::String>
59 FailedRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
61
63
64 inline FailureCode GetFailureCode() const { return m_failureCode; }
65 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
66 inline void SetFailureCode(FailureCode value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
67 inline FailedRequest& WithFailureCode(FailureCode value) { SetFailureCode(value); return *this;}
69 private:
70
71 Aws::String m_clientToken;
72 bool m_clientTokenHasBeenSet = false;
73
74 Aws::String m_id;
75 bool m_idHasBeenSet = false;
76
77 FailureCode m_failureCode{FailureCode::NOT_SET};
78 bool m_failureCodeHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ConnectCampaigns
83} // namespace Aws
void SetClientToken(ClientTokenT &&value)
FailedRequest & WithId(IdT &&value)
FailedRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
AWS_CONNECTCAMPAIGNS_API FailedRequest()=default
AWS_CONNECTCAMPAIGNS_API FailedRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
FailedRequest & WithFailureCode(FailureCode value)
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCAMPAIGNS_API FailedRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue