AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline FailedRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline FailedRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline FailedRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
56 inline const Aws::String& GetId() const{ return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
61 inline FailedRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
62 inline FailedRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63 inline FailedRequest& WithId(const char* value) { SetId(value); return *this;}
65
67
68 inline const FailureCode& GetFailureCode() const{ return m_failureCode; }
69 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
70 inline void SetFailureCode(const FailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
71 inline void SetFailureCode(FailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
72 inline FailedRequest& WithFailureCode(const FailureCode& value) { SetFailureCode(value); return *this;}
73 inline FailedRequest& WithFailureCode(FailureCode&& value) { SetFailureCode(std::move(value)); return *this;}
75 private:
76
77 Aws::String m_clientToken;
78 bool m_clientTokenHasBeenSet = false;
79
80 Aws::String m_id;
81 bool m_idHasBeenSet = false;
82
83 FailureCode m_failureCode;
84 bool m_failureCodeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ConnectCampaigns
89} // namespace Aws
FailedRequest & WithClientToken(Aws::String &&value)
FailedRequest & WithId(Aws::String &&value)
FailedRequest & WithClientToken(const Aws::String &value)
const Aws::String & GetClientToken() const
AWS_CONNECTCAMPAIGNS_API FailedRequest()
FailedRequest & WithFailureCode(const FailureCode &value)
void SetClientToken(const Aws::String &value)
FailedRequest & WithClientToken(const char *value)
AWS_CONNECTCAMPAIGNS_API FailedRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFailureCode(const FailureCode &value)
const FailureCode & GetFailureCode() const
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const Aws::String &value)
FailedRequest & WithFailureCode(FailureCode &&value)
FailedRequest & WithId(const char *value)
AWS_CONNECTCAMPAIGNS_API FailedRequest(Aws::Utils::Json::JsonView jsonValue)
FailedRequest & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue