AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeFleetError.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/LaunchTemplateAndOverridesResponse.h>
10#include <aws/ec2/model/InstanceLifecycle.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API DescribeFleetError();
38 AWS_EC2_API DescribeFleetError(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
51 inline const LaunchTemplateAndOverridesResponse& GetLaunchTemplateAndOverrides() const{ return m_launchTemplateAndOverrides; }
52 inline bool LaunchTemplateAndOverridesHasBeenSet() const { return m_launchTemplateAndOverridesHasBeenSet; }
53 inline void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = value; }
54 inline void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse&& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = std::move(value); }
58
60
64 inline const InstanceLifecycle& GetLifecycle() const{ return m_lifecycle; }
65 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
66 inline void SetLifecycle(const InstanceLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
67 inline void SetLifecycle(InstanceLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
68 inline DescribeFleetError& WithLifecycle(const InstanceLifecycle& value) { SetLifecycle(value); return *this;}
69 inline DescribeFleetError& WithLifecycle(InstanceLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
71
73
79 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
80 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
81 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
82 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
83 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
84 inline DescribeFleetError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
85 inline DescribeFleetError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
86 inline DescribeFleetError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
88
90
96 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
97 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
98 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
99 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
100 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
101 inline DescribeFleetError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
102 inline DescribeFleetError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
103 inline DescribeFleetError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
105 private:
106
107 LaunchTemplateAndOverridesResponse m_launchTemplateAndOverrides;
108 bool m_launchTemplateAndOverridesHasBeenSet = false;
109
110 InstanceLifecycle m_lifecycle;
111 bool m_lifecycleHasBeenSet = false;
112
113 Aws::String m_errorCode;
114 bool m_errorCodeHasBeenSet = false;
115
116 Aws::String m_errorMessage;
117 bool m_errorMessageHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace EC2
122} // namespace Aws
AWS_EC2_API DescribeFleetError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DescribeFleetError & WithErrorMessage(Aws::String &&value)
DescribeFleetError & WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
void SetErrorCode(Aws::String &&value)
DescribeFleetError & WithLifecycle(const InstanceLifecycle &value)
void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DescribeFleetError & WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
DescribeFleetError & WithErrorCode(Aws::String &&value)
void SetErrorMessage(const Aws::String &value)
const LaunchTemplateAndOverridesResponse & GetLaunchTemplateAndOverrides() const
void SetLifecycle(InstanceLifecycle &&value)
const Aws::String & GetErrorMessage() const
void SetErrorMessage(Aws::String &&value)
DescribeFleetError & WithLifecycle(InstanceLifecycle &&value)
DescribeFleetError & WithErrorMessage(const Aws::String &value)
void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
const InstanceLifecycle & GetLifecycle() const
const Aws::String & GetErrorCode() const
AWS_EC2_API DescribeFleetError(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DescribeFleetError & WithErrorCode(const char *value)
void SetLifecycle(const InstanceLifecycle &value)
DescribeFleetError & WithErrorCode(const Aws::String &value)
void SetErrorCode(const Aws::String &value)
DescribeFleetError & WithErrorMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream