AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricReference.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/model/ReferenceDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_RDS_API MetricReference();
36 AWS_RDS_API MetricReference(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline MetricReference& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline MetricReference& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline MetricReference& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const ReferenceDetails& GetReferenceDetails() const{ return m_referenceDetails; }
62 inline bool ReferenceDetailsHasBeenSet() const { return m_referenceDetailsHasBeenSet; }
63 inline void SetReferenceDetails(const ReferenceDetails& value) { m_referenceDetailsHasBeenSet = true; m_referenceDetails = value; }
64 inline void SetReferenceDetails(ReferenceDetails&& value) { m_referenceDetailsHasBeenSet = true; m_referenceDetails = std::move(value); }
65 inline MetricReference& WithReferenceDetails(const ReferenceDetails& value) { SetReferenceDetails(value); return *this;}
66 inline MetricReference& WithReferenceDetails(ReferenceDetails&& value) { SetReferenceDetails(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_name;
71 bool m_nameHasBeenSet = false;
72
73 ReferenceDetails m_referenceDetails;
74 bool m_referenceDetailsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace RDS
79} // namespace Aws
const ReferenceDetails & GetReferenceDetails() const
AWS_RDS_API MetricReference & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricReference & WithReferenceDetails(const ReferenceDetails &value)
MetricReference & WithReferenceDetails(ReferenceDetails &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReferenceDetails(const ReferenceDetails &value)
void SetReferenceDetails(ReferenceDetails &&value)
const Aws::String & GetName() const
MetricReference & WithName(Aws::String &&value)
MetricReference & WithName(const char *value)
void SetName(const char *value)
void SetName(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MetricReference & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
AWS_RDS_API MetricReference(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream