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/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/FailureReasonCode.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 Connect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECT_API FailedRequest();
37 AWS_CONNECT_API FailedRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetRequestIdentifier() const{ return m_requestIdentifier; }
48 inline bool RequestIdentifierHasBeenSet() const { return m_requestIdentifierHasBeenSet; }
49 inline void SetRequestIdentifier(const Aws::String& value) { m_requestIdentifierHasBeenSet = true; m_requestIdentifier = value; }
50 inline void SetRequestIdentifier(Aws::String&& value) { m_requestIdentifierHasBeenSet = true; m_requestIdentifier = std::move(value); }
51 inline void SetRequestIdentifier(const char* value) { m_requestIdentifierHasBeenSet = true; m_requestIdentifier.assign(value); }
52 inline FailedRequest& WithRequestIdentifier(const Aws::String& value) { SetRequestIdentifier(value); return *this;}
53 inline FailedRequest& WithRequestIdentifier(Aws::String&& value) { SetRequestIdentifier(std::move(value)); return *this;}
54 inline FailedRequest& WithRequestIdentifier(const char* value) { SetRequestIdentifier(value); return *this;}
56
58
61 inline const FailureReasonCode& GetFailureReasonCode() const{ return m_failureReasonCode; }
62 inline bool FailureReasonCodeHasBeenSet() const { return m_failureReasonCodeHasBeenSet; }
63 inline void SetFailureReasonCode(const FailureReasonCode& value) { m_failureReasonCodeHasBeenSet = true; m_failureReasonCode = value; }
64 inline void SetFailureReasonCode(FailureReasonCode&& value) { m_failureReasonCodeHasBeenSet = true; m_failureReasonCode = std::move(value); }
65 inline FailedRequest& WithFailureReasonCode(const FailureReasonCode& value) { SetFailureReasonCode(value); return *this;}
66 inline FailedRequest& WithFailureReasonCode(FailureReasonCode&& value) { SetFailureReasonCode(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetFailureReasonMessage() const{ return m_failureReasonMessage; }
74 inline bool FailureReasonMessageHasBeenSet() const { return m_failureReasonMessageHasBeenSet; }
75 inline void SetFailureReasonMessage(const Aws::String& value) { m_failureReasonMessageHasBeenSet = true; m_failureReasonMessage = value; }
76 inline void SetFailureReasonMessage(Aws::String&& value) { m_failureReasonMessageHasBeenSet = true; m_failureReasonMessage = std::move(value); }
77 inline void SetFailureReasonMessage(const char* value) { m_failureReasonMessageHasBeenSet = true; m_failureReasonMessage.assign(value); }
78 inline FailedRequest& WithFailureReasonMessage(const Aws::String& value) { SetFailureReasonMessage(value); return *this;}
79 inline FailedRequest& WithFailureReasonMessage(Aws::String&& value) { SetFailureReasonMessage(std::move(value)); return *this;}
80 inline FailedRequest& WithFailureReasonMessage(const char* value) { SetFailureReasonMessage(value); return *this;}
82 private:
83
84 Aws::String m_requestIdentifier;
85 bool m_requestIdentifierHasBeenSet = false;
86
87 FailureReasonCode m_failureReasonCode;
88 bool m_failureReasonCodeHasBeenSet = false;
89
90 Aws::String m_failureReasonMessage;
91 bool m_failureReasonMessageHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Connect
96} // namespace Aws
void SetRequestIdentifier(const char *value)
FailedRequest & WithFailureReasonMessage(const char *value)
FailedRequest & WithFailureReasonMessage(const Aws::String &value)
void SetFailureReasonCode(FailureReasonCode &&value)
void SetFailureReasonCode(const FailureReasonCode &value)
FailedRequest & WithFailureReasonMessage(Aws::String &&value)
FailedRequest & WithRequestIdentifier(const char *value)
FailedRequest & WithFailureReasonCode(const FailureReasonCode &value)
FailedRequest & WithRequestIdentifier(Aws::String &&value)
FailedRequest & WithFailureReasonCode(FailureReasonCode &&value)
void SetFailureReasonMessage(Aws::String &&value)
void SetRequestIdentifier(const Aws::String &value)
const Aws::String & GetFailureReasonMessage() const
AWS_CONNECT_API FailedRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRequestIdentifier() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFailureReasonMessage(const char *value)
void SetRequestIdentifier(Aws::String &&value)
AWS_CONNECT_API FailedRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const FailureReasonCode & GetFailureReasonCode() const
FailedRequest & WithRequestIdentifier(const Aws::String &value)
void SetFailureReasonMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue