AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Alias.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/model/AliasLifecycle.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 FSx
23{
24namespace Model
25{
26
38 class Alias
39 {
40 public:
41 AWS_FSX_API Alias() = default;
42 AWS_FSX_API Alias(Aws::Utils::Json::JsonView jsonValue);
45
46
48
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 Alias& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
78 inline AliasLifecycle GetLifecycle() const { return m_lifecycle; }
79 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
80 inline void SetLifecycle(AliasLifecycle value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
81 inline Alias& WithLifecycle(AliasLifecycle value) { SetLifecycle(value); return *this;}
83 private:
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
89 bool m_lifecycleHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace FSx
94} // namespace Aws
void SetName(NameT &&value)
Definition Alias.h:62
Alias & WithName(NameT &&value)
Definition Alias.h:64
bool NameHasBeenSet() const
Definition Alias.h:60
AWS_FSX_API Alias(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AliasLifecycle GetLifecycle() const
Definition Alias.h:78
AWS_FSX_API Alias()=default
Alias & WithLifecycle(AliasLifecycle value)
Definition Alias.h:81
bool LifecycleHasBeenSet() const
Definition Alias.h:79
void SetLifecycle(AliasLifecycle value)
Definition Alias.h:80
const Aws::String & GetName() const
Definition Alias.h:59
AWS_FSX_API Alias & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue