AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline Alias& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline Alias& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline Alias& WithName(const char* value) { SetName(value); return *this;}
68
70
80 inline const AliasLifecycle& GetLifecycle() const{ return m_lifecycle; }
81 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
82 inline void SetLifecycle(const AliasLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
83 inline void SetLifecycle(AliasLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
84 inline Alias& WithLifecycle(const AliasLifecycle& value) { SetLifecycle(value); return *this;}
85 inline Alias& WithLifecycle(AliasLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 AliasLifecycle m_lifecycle;
93 bool m_lifecycleHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace FSx
98} // namespace Aws
Alias & WithName(const char *value)
Definition Alias.h:66
Alias & WithName(Aws::String &&value)
Definition Alias.h:65
bool NameHasBeenSet() const
Definition Alias.h:60
void SetName(Aws::String &&value)
Definition Alias.h:62
AWS_FSX_API Alias(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycle(AliasLifecycle &&value)
Definition Alias.h:83
void SetName(const Aws::String &value)
Definition Alias.h:61
Alias & WithLifecycle(AliasLifecycle &&value)
Definition Alias.h:85
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
Alias & WithLifecycle(const AliasLifecycle &value)
Definition Alias.h:84
const AliasLifecycle & GetLifecycle() const
Definition Alias.h:80
void SetName(const char *value)
Definition Alias.h:63
Alias & WithName(const Aws::String &value)
Definition Alias.h:64
void SetLifecycle(const AliasLifecycle &value)
Definition Alias.h:82
bool LifecycleHasBeenSet() const
Definition Alias.h:81
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