AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Secret.h
1
6#pragma once
7#include <aws/batch/Batch_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 Batch
22{
23namespace Model
24{
25
39 class Secret
40 {
41 public:
42 AWS_BATCH_API Secret();
43 AWS_BATCH_API Secret(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BATCH_API Secret& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline Secret& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline Secret& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline Secret& WithName(const char* value) { SetName(value); return *this;}
61
63
72 inline const Aws::String& GetValueFrom() const{ return m_valueFrom; }
73 inline bool ValueFromHasBeenSet() const { return m_valueFromHasBeenSet; }
74 inline void SetValueFrom(const Aws::String& value) { m_valueFromHasBeenSet = true; m_valueFrom = value; }
75 inline void SetValueFrom(Aws::String&& value) { m_valueFromHasBeenSet = true; m_valueFrom = std::move(value); }
76 inline void SetValueFrom(const char* value) { m_valueFromHasBeenSet = true; m_valueFrom.assign(value); }
77 inline Secret& WithValueFrom(const Aws::String& value) { SetValueFrom(value); return *this;}
78 inline Secret& WithValueFrom(Aws::String&& value) { SetValueFrom(std::move(value)); return *this;}
79 inline Secret& WithValueFrom(const char* value) { SetValueFrom(value); return *this;}
81 private:
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
86 Aws::String m_valueFrom;
87 bool m_valueFromHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Batch
92} // namespace Aws
void SetName(const char *value)
Definition Secret.h:56
Secret & WithValueFrom(Aws::String &&value)
Definition Secret.h:78
Secret & WithName(const char *value)
Definition Secret.h:59
void SetValueFrom(const Aws::String &value)
Definition Secret.h:74
void SetValueFrom(const char *value)
Definition Secret.h:76
void SetName(Aws::String &&value)
Definition Secret.h:55
const Aws::String & GetValueFrom() const
Definition Secret.h:72
Secret & WithValueFrom(const char *value)
Definition Secret.h:79
AWS_BATCH_API Secret()
void SetName(const Aws::String &value)
Definition Secret.h:54
const Aws::String & GetName() const
Definition Secret.h:52
AWS_BATCH_API Secret & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Secret(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
bool ValueFromHasBeenSet() const
Definition Secret.h:73
bool NameHasBeenSet() const
Definition Secret.h:53
Secret & WithName(Aws::String &&value)
Definition Secret.h:58
Secret & WithName(const Aws::String &value)
Definition Secret.h:57
Secret & WithValueFrom(const Aws::String &value)
Definition Secret.h:77
void SetValueFrom(Aws::String &&value)
Definition Secret.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue