AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
SourceResource.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MigrationHub {
20namespace Model {
21
29 public:
30 AWS_MIGRATIONHUB_API SourceResource() = default;
31 AWS_MIGRATIONHUB_API SourceResource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MIGRATIONHUB_API SourceResource& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 SourceResource& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 SourceResource& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStatusDetail() const { return m_statusDetail; }
79 inline bool StatusDetailHasBeenSet() const { return m_statusDetailHasBeenSet; }
80 template <typename StatusDetailT = Aws::String>
81 void SetStatusDetail(StatusDetailT&& value) {
82 m_statusDetailHasBeenSet = true;
83 m_statusDetail = std::forward<StatusDetailT>(value);
84 }
85 template <typename StatusDetailT = Aws::String>
86 SourceResource& WithStatusDetail(StatusDetailT&& value) {
87 SetStatusDetail(std::forward<StatusDetailT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
98 Aws::String m_statusDetail;
99 bool m_statusDetailHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace MigrationHub
104} // namespace Aws
void SetDescription(DescriptionT &&value)
void SetStatusDetail(StatusDetailT &&value)
SourceResource & WithName(NameT &&value)
AWS_MIGRATIONHUB_API SourceResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStatusDetail() const
SourceResource & WithStatusDetail(StatusDetailT &&value)
AWS_MIGRATIONHUB_API SourceResource()=default
SourceResource & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetName() const
AWS_MIGRATIONHUB_API SourceResource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue