AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetStatus.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/FleetStatusCode.h>
9#include <aws/codebuild/model/FleetContextCode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CODEBUILD_API FleetStatus();
37 AWS_CODEBUILD_API FleetStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEBUILD_API FleetStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
56 inline const FleetStatusCode& GetStatusCode() const{ return m_statusCode; }
57 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
58 inline void SetStatusCode(const FleetStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
59 inline void SetStatusCode(FleetStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
60 inline FleetStatus& WithStatusCode(const FleetStatusCode& value) { SetStatusCode(value); return *this;}
61 inline FleetStatus& WithStatusCode(FleetStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
63
65
71 inline const FleetContextCode& GetContext() const{ return m_context; }
72 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
73 inline void SetContext(const FleetContextCode& value) { m_contextHasBeenSet = true; m_context = value; }
74 inline void SetContext(FleetContextCode&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
75 inline FleetStatus& WithContext(const FleetContextCode& value) { SetContext(value); return *this;}
76 inline FleetStatus& WithContext(FleetContextCode&& value) { SetContext(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetMessage() const{ return m_message; }
84 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
85 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
86 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
87 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
88 inline FleetStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
89 inline FleetStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
90 inline FleetStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
92 private:
93
94 FleetStatusCode m_statusCode;
95 bool m_statusCodeHasBeenSet = false;
96
97 FleetContextCode m_context;
98 bool m_contextHasBeenSet = false;
99
100 Aws::String m_message;
101 bool m_messageHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CodeBuild
106} // namespace Aws
AWS_CODEBUILD_API FleetStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
FleetStatus & WithMessage(const Aws::String &value)
Definition FleetStatus.h:88
FleetStatus & WithContext(const FleetContextCode &value)
Definition FleetStatus.h:75
void SetMessage(const Aws::String &value)
Definition FleetStatus.h:85
FleetStatus & WithContext(FleetContextCode &&value)
Definition FleetStatus.h:76
const FleetContextCode & GetContext() const
Definition FleetStatus.h:71
FleetStatus & WithMessage(const char *value)
Definition FleetStatus.h:90
void SetMessage(const char *value)
Definition FleetStatus.h:87
const Aws::String & GetMessage() const
Definition FleetStatus.h:83
void SetContext(FleetContextCode &&value)
Definition FleetStatus.h:74
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
FleetStatus & WithStatusCode(FleetStatusCode &&value)
Definition FleetStatus.h:61
const FleetStatusCode & GetStatusCode() const
Definition FleetStatus.h:56
FleetStatus & WithMessage(Aws::String &&value)
Definition FleetStatus.h:89
FleetStatus & WithStatusCode(const FleetStatusCode &value)
Definition FleetStatus.h:60
void SetMessage(Aws::String &&value)
Definition FleetStatus.h:86
void SetStatusCode(const FleetStatusCode &value)
Definition FleetStatus.h:58
void SetStatusCode(FleetStatusCode &&value)
Definition FleetStatus.h:59
AWS_CODEBUILD_API FleetStatus(Aws::Utils::Json::JsonView jsonValue)
void SetContext(const FleetContextCode &value)
Definition FleetStatus.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue