AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoggingConfigurationStatus.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/LoggingConfigurationStatusCode.h>
9#include <aws/core/utils/memory/stl/AWSString.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 PrometheusService
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PROMETHEUSSERVICE_API LoggingConfigurationStatus();
36 AWS_PROMETHEUSSERVICE_API LoggingConfigurationStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const LoggingConfigurationStatusCode& GetStatusCode() const{ return m_statusCode; }
46 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
47 inline void SetStatusCode(const LoggingConfigurationStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
48 inline void SetStatusCode(LoggingConfigurationStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
52
54
57 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
58 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
59 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
60 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
61 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
62 inline LoggingConfigurationStatus& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
63 inline LoggingConfigurationStatus& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
64 inline LoggingConfigurationStatus& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
66 private:
67
69 bool m_statusCodeHasBeenSet = false;
70
71 Aws::String m_statusReason;
72 bool m_statusReasonHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace PrometheusService
77} // namespace Aws
AWS_PROMETHEUSSERVICE_API LoggingConfigurationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingConfigurationStatus & WithStatusReason(const Aws::String &value)
AWS_PROMETHEUSSERVICE_API LoggingConfigurationStatus(Aws::Utils::Json::JsonView jsonValue)
void SetStatusCode(LoggingConfigurationStatusCode &&value)
LoggingConfigurationStatus & WithStatusCode(LoggingConfigurationStatusCode &&value)
LoggingConfigurationStatus & WithStatusCode(const LoggingConfigurationStatusCode &value)
LoggingConfigurationStatus & WithStatusReason(Aws::String &&value)
const LoggingConfigurationStatusCode & GetStatusCode() const
void SetStatusCode(const LoggingConfigurationStatusCode &value)
LoggingConfigurationStatus & WithStatusReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue