AWS SDK for C++  1.9.109
AWS SDK for C++
Secret.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
41  {
42  public:
43  Secret();
47 
48 
52  inline const Aws::String& GetName() const{ return m_name; }
53 
57  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 
62  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
77  inline Secret& WithName(const Aws::String& value) { SetName(value); return *this;}
78 
82  inline Secret& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 
87  inline Secret& WithName(const char* value) { SetName(value); return *this;}
88 
89 
98  inline const Aws::String& GetValueFrom() const{ return m_valueFrom; }
99 
108  inline bool ValueFromHasBeenSet() const { return m_valueFromHasBeenSet; }
109 
118  inline void SetValueFrom(const Aws::String& value) { m_valueFromHasBeenSet = true; m_valueFrom = value; }
119 
128  inline void SetValueFrom(Aws::String&& value) { m_valueFromHasBeenSet = true; m_valueFrom = std::move(value); }
129 
138  inline void SetValueFrom(const char* value) { m_valueFromHasBeenSet = true; m_valueFrom.assign(value); }
139 
148  inline Secret& WithValueFrom(const Aws::String& value) { SetValueFrom(value); return *this;}
149 
158  inline Secret& WithValueFrom(Aws::String&& value) { SetValueFrom(std::move(value)); return *this;}
159 
168  inline Secret& WithValueFrom(const char* value) { SetValueFrom(value); return *this;}
169 
170  private:
171 
172  Aws::String m_name;
173  bool m_nameHasBeenSet;
174 
175  Aws::String m_valueFrom;
176  bool m_valueFromHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace ECS
181 } // namespace Aws
Aws::ECS::Model::Secret::SetName
void SetName(const char *value)
Definition: Secret.h:72
Aws::ECS::Model::Secret::SetName
void SetName(const Aws::String &value)
Definition: Secret.h:62
Aws::ECS::Model::Secret::ValueFromHasBeenSet
bool ValueFromHasBeenSet() const
Definition: Secret.h:108
Aws::ECS::Model::Secret::SetValueFrom
void SetValueFrom(const char *value)
Definition: Secret.h:138
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Secret
Definition: Secret.h:41
Aws::ECS::Model::Secret::WithName
Secret & WithName(Aws::String &&value)
Definition: Secret.h:82
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Secret::WithName
Secret & WithName(const Aws::String &value)
Definition: Secret.h:77
Aws::ECS::Model::Secret::WithValueFrom
Secret & WithValueFrom(const Aws::String &value)
Definition: Secret.h:148
Aws::ECS::Model::Secret::Secret
Secret()
Aws::ECS::Model::Secret::SetValueFrom
void SetValueFrom(const Aws::String &value)
Definition: Secret.h:118
Aws::ECS::Model::Secret::Secret
Secret(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Secret::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Secret.h:57
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::Secret::operator=
Secret & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Secret::GetValueFrom
const Aws::String & GetValueFrom() const
Definition: Secret.h:98
Aws::ECS::Model::Secret::WithValueFrom
Secret & WithValueFrom(Aws::String &&value)
Definition: Secret.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Secret::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Secret::GetName
const Aws::String & GetName() const
Definition: Secret.h:52
Aws::ECS::Model::Secret::WithName
Secret & WithName(const char *value)
Definition: Secret.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Secret::SetValueFrom
void SetValueFrom(Aws::String &&value)
Definition: Secret.h:128
Aws::ECS::Model::Secret::SetName
void SetName(Aws::String &&value)
Definition: Secret.h:67
ECS_EXPORTS.h
Aws::ECS::Model::Secret::WithValueFrom
Secret & WithValueFrom(const char *value)
Definition: Secret.h:168