AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MigrationHub {
21namespace Model {
22
37 public:
38 AWS_MIGRATIONHUB_API ResourceAttribute() = default;
39 AWS_MIGRATIONHUB_API ResourceAttribute(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MIGRATIONHUB_API ResourceAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline ResourceAttributeType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(ResourceAttributeType value) {
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
54 SetType(value);
55 return *this;
56 }
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) {
67 m_valueHasBeenSet = true;
68 m_value = std::forward<ValueT>(value);
69 }
70 template <typename ValueT = Aws::String>
71 ResourceAttribute& WithValue(ValueT&& value) {
72 SetValue(std::forward<ValueT>(value));
73 return *this;
74 }
76 private:
78
79 Aws::String m_value;
80 bool m_typeHasBeenSet = false;
81 bool m_valueHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace MigrationHub
86} // 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