AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Alias.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fsx/FSx_EXPORTS.h>
9#include <aws/fsx/model/AliasLifecycle.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FSx {
21namespace Model {
22
34class Alias {
35 public:
36 AWS_FSX_API Alias() = default;
37 AWS_FSX_API Alias(Aws::Utils::Json::JsonView jsonValue);
40
42
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template <typename NameT = Aws::String>
56 void SetName(NameT&& value) {
57 m_nameHasBeenSet = true;
58 m_name = std::forward<NameT>(value);
59 }
60 template <typename NameT = Aws::String>
61 Alias& WithName(NameT&& value) {
62 SetName(std::forward<NameT>(value));
63 return *this;
64 }
66
68
78 inline AliasLifecycle GetLifecycle() const { return m_lifecycle; }
79 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
80 inline void SetLifecycle(AliasLifecycle value) {
81 m_lifecycleHasBeenSet = true;
82 m_lifecycle = value;
83 }
85 SetLifecycle(value);
86 return *this;
87 }
89 private:
90 Aws::String m_name;
91
93 bool m_nameHasBeenSet = false;
94 bool m_lifecycleHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace FSx
99} // namespace Aws
void SetName(NameT &&value)
Definition Alias.h:56
Alias & WithName(NameT &&value)
Definition Alias.h:61
bool NameHasBeenSet() const
Definition Alias.h:54
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:84
bool LifecycleHasBeenSet() const
Definition Alias.h:79
void SetLifecycle(AliasLifecycle value)
Definition Alias.h:80
const Aws::String & GetName() const
Definition Alias.h:53
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