AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MigrationHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MIGRATIONHUB_API SourceResource() = default;
36 AWS_MIGRATIONHUB_API SourceResource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MIGRATIONHUB_API SourceResource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 SourceResource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 SourceResource& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetStatusDetail() const { return m_statusDetail; }
73 inline bool StatusDetailHasBeenSet() const { return m_statusDetailHasBeenSet; }
74 template<typename StatusDetailT = Aws::String>
75 void SetStatusDetail(StatusDetailT&& value) { m_statusDetailHasBeenSet = true; m_statusDetail = std::forward<StatusDetailT>(value); }
76 template<typename StatusDetailT = Aws::String>
77 SourceResource& WithStatusDetail(StatusDetailT&& value) { SetStatusDetail(std::forward<StatusDetailT>(value)); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_description;
85 bool m_descriptionHasBeenSet = false;
86
87 Aws::String m_statusDetail;
88 bool m_statusDetailHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace MigrationHub
93} // 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