AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetFailure.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VPCLattice
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_VPCLATTICE_API TargetFailure();
35 AWS_VPCLATTICE_API TargetFailure(Aws::Utils::Json::JsonView jsonValue);
36 AWS_VPCLATTICE_API TargetFailure& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
45 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
46 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
47 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
48 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
49 inline TargetFailure& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
50 inline TargetFailure& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
51 inline TargetFailure& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
53
55
58 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
59 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
60 inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
61 inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); }
62 inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); }
63 inline TargetFailure& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
64 inline TargetFailure& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
65 inline TargetFailure& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
67
69
76 inline const Aws::String& GetId() const{ return m_id; }
77 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
78 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
79 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
80 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
81 inline TargetFailure& WithId(const Aws::String& value) { SetId(value); return *this;}
82 inline TargetFailure& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
83 inline TargetFailure& WithId(const char* value) { SetId(value); return *this;}
85
87
91 inline int GetPort() const{ return m_port; }
92 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
93 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
94 inline TargetFailure& WithPort(int value) { SetPort(value); return *this;}
96 private:
97
98 Aws::String m_failureCode;
99 bool m_failureCodeHasBeenSet = false;
100
101 Aws::String m_failureMessage;
102 bool m_failureMessageHasBeenSet = false;
103
104 Aws::String m_id;
105 bool m_idHasBeenSet = false;
106
107 int m_port;
108 bool m_portHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace VPCLattice
113} // namespace Aws
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API TargetFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFailureCode(const Aws::String &value)
AWS_VPCLATTICE_API TargetFailure(Aws::Utils::Json::JsonView jsonValue)
TargetFailure & WithFailureCode(const Aws::String &value)
TargetFailure & WithFailureMessage(const char *value)
TargetFailure & WithId(const char *value)
TargetFailure & WithFailureCode(Aws::String &&value)
const Aws::String & GetFailureMessage() const
const Aws::String & GetId() const
void SetId(Aws::String &&value)
TargetFailure & WithId(Aws::String &&value)
TargetFailure & WithFailureCode(const char *value)
void SetFailureMessage(const char *value)
TargetFailure & WithId(const Aws::String &value)
TargetFailure & WithFailureMessage(Aws::String &&value)
void SetFailureMessage(Aws::String &&value)
const Aws::String & GetFailureCode() const
void SetFailureCode(const char *value)
TargetFailure & WithFailureMessage(const Aws::String &value)
void SetFailureMessage(const Aws::String &value)
void SetId(const Aws::String &value)
TargetFailure & WithPort(int value)
void SetFailureCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue