AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ResourceAttributeType& GetType() const{ return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(const ResourceAttributeType& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(ResourceAttributeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline ResourceAttribute& WithType(const ResourceAttributeType& value) { SetType(value); return *this;}
58 inline ResourceAttribute& WithType(ResourceAttributeType&& value) { SetType(std::move(value)); return *this;}
60
62
65 inline const Aws::String& GetValue() const{ return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
68 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
69 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
70 inline ResourceAttribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
71 inline ResourceAttribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
72 inline ResourceAttribute& WithValue(const char* value) { SetValue(value); return *this;}
74 private:
75
77 bool m_typeHasBeenSet = false;
78
79 Aws::String m_value;
80 bool m_valueHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace MigrationHub
85} // namespace Aws
ResourceAttribute & WithType(const ResourceAttributeType &value)
const ResourceAttributeType & GetType() const
ResourceAttribute & WithValue(Aws::String &&value)
AWS_MIGRATIONHUB_API ResourceAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUB_API ResourceAttribute(Aws::Utils::Json::JsonView jsonValue)
ResourceAttribute & WithValue(const char *value)
void SetType(const ResourceAttributeType &value)
void SetValue(const Aws::String &value)
void SetType(ResourceAttributeType &&value)
ResourceAttribute & WithValue(const Aws::String &value)
ResourceAttribute & WithType(ResourceAttributeType &&value)
AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue