AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
8#include <aws/migrationhub-config/model/TargetType.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 MigrationHubConfig
23{
24namespace Model
25{
26
34 class Target
35 {
36 public:
37 AWS_MIGRATIONHUBCONFIG_API Target() = default;
38 AWS_MIGRATIONHUBCONFIG_API Target(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MIGRATIONHUBCONFIG_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MIGRATIONHUBCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline TargetType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(TargetType value) { m_typeHasBeenSet = true; m_type = value; }
50 inline Target& WithType(TargetType value) { SetType(value); return *this;}
52
54
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 Target& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
66 private:
67
69 bool m_typeHasBeenSet = false;
70
71 Aws::String m_id;
72 bool m_idHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace MigrationHubConfig
77} // namespace Aws
void SetType(TargetType value)
Definition Target.h:49
Target & WithId(IdT &&value)
Definition Target.h:64
AWS_MIGRATIONHUBCONFIG_API Target()=default
AWS_MIGRATIONHUBCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUBCONFIG_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Target.h:59
Target & WithType(TargetType value)
Definition Target.h:50
AWS_MIGRATIONHUBCONFIG_API Target(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue