AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResourceAttribute.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
8#include <aws/AWSMigrationHub/model/ResourceAttributeType.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 MigrationHub
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_MIGRATIONHUB_API ResourceAttribute() = default;
44 AWS_MIGRATIONHUB_API ResourceAttribute(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MIGRATIONHUB_API ResourceAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline ResourceAttributeType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(ResourceAttributeType value) { m_typeHasBeenSet = true; m_type = value; }
56 inline ResourceAttribute& WithType(ResourceAttributeType value) { SetType(value); return *this;}
58
60
63 inline const Aws::String& GetValue() const { return m_value; }
64 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
65 template<typename ValueT = Aws::String>
66 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
67 template<typename ValueT = Aws::String>
68 ResourceAttribute& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
70 private:
71
73 bool m_typeHasBeenSet = false;
74
75 Aws::String m_value;
76 bool m_valueHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MigrationHub
81} // namespace Aws
AWS_MIGRATIONHUB_API ResourceAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUB_API ResourceAttribute(Aws::Utils::Json::JsonView jsonValue)
void SetType(ResourceAttributeType value)
AWS_MIGRATIONHUB_API ResourceAttribute()=default
ResourceAttribute & WithValue(ValueT &&value)
AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceAttribute & WithType(ResourceAttributeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue