AWS SDK for C++  1.9.20
AWS SDK for C++
SourceAccessConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lambda
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
57  inline const SourceAccessType& GetType() const{ return m_type; }
58 
74  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 
91  inline void SetType(const SourceAccessType& value) { m_typeHasBeenSet = true; m_type = value; }
92 
108  inline void SetType(SourceAccessType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
109 
125  inline SourceAccessConfiguration& WithType(const SourceAccessType& value) { SetType(value); return *this;}
126 
142  inline SourceAccessConfiguration& WithType(SourceAccessType&& value) { SetType(std::move(value)); return *this;}
143 
144 
150  inline const Aws::String& GetURI() const{ return m_uRI; }
151 
157  inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
158 
164  inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
165 
171  inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
172 
178  inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
179 
185  inline SourceAccessConfiguration& WithURI(const Aws::String& value) { SetURI(value); return *this;}
186 
192  inline SourceAccessConfiguration& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
193 
199  inline SourceAccessConfiguration& WithURI(const char* value) { SetURI(value); return *this;}
200 
201  private:
202 
203  SourceAccessType m_type;
204  bool m_typeHasBeenSet;
205 
206  Aws::String m_uRI;
207  bool m_uRIHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace Lambda
212 } // namespace Aws
Aws::Lambda::Model::SourceAccessConfiguration::SourceAccessConfiguration
SourceAccessConfiguration(Aws::Utils::Json::JsonView jsonValue)
SourceAccessType.h
Aws::Lambda::Model::SourceAccessConfiguration::SetType
void SetType(const SourceAccessType &value)
Definition: SourceAccessConfiguration.h:91
Aws::Lambda::Model::SourceAccessConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::SourceAccessConfiguration::URIHasBeenSet
bool URIHasBeenSet() const
Definition: SourceAccessConfiguration.h:157
Aws::Lambda::Model::SourceAccessConfiguration
Definition: SourceAccessConfiguration.h:34
Aws::Lambda::Model::SourceAccessConfiguration::WithType
SourceAccessConfiguration & WithType(SourceAccessType &&value)
Definition: SourceAccessConfiguration.h:142
Aws::Lambda::Model::SourceAccessType
SourceAccessType
Definition: SourceAccessType.h:17
Aws::Lambda::Model::SourceAccessConfiguration::WithType
SourceAccessConfiguration & WithType(const SourceAccessType &value)
Definition: SourceAccessConfiguration.h:125
Aws::Lambda::Model::SourceAccessConfiguration::WithURI
SourceAccessConfiguration & WithURI(Aws::String &&value)
Definition: SourceAccessConfiguration.h:192
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::SourceAccessConfiguration::operator=
SourceAccessConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::SourceAccessConfiguration::SetURI
void SetURI(const Aws::String &value)
Definition: SourceAccessConfiguration.h:164
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Lambda::Model::SourceAccessConfiguration::SourceAccessConfiguration
SourceAccessConfiguration()
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lambda::Model::SourceAccessConfiguration::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: SourceAccessConfiguration.h:74
Aws::Lambda::Model::SourceAccessConfiguration::GetType
const SourceAccessType & GetType() const
Definition: SourceAccessConfiguration.h:57
Aws::Lambda::Model::SourceAccessConfiguration::WithURI
SourceAccessConfiguration & WithURI(const Aws::String &value)
Definition: SourceAccessConfiguration.h:185
Aws::Lambda::Model::SourceAccessConfiguration::SetURI
void SetURI(Aws::String &&value)
Definition: SourceAccessConfiguration.h:171
Aws::Lambda::Model::SourceAccessConfiguration::SetType
void SetType(SourceAccessType &&value)
Definition: SourceAccessConfiguration.h:108
Aws::Lambda::Model::SourceAccessConfiguration::SetURI
void SetURI(const char *value)
Definition: SourceAccessConfiguration.h:178
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::SourceAccessConfiguration::WithURI
SourceAccessConfiguration & WithURI(const char *value)
Definition: SourceAccessConfiguration.h:199
Aws::Lambda::Model::SourceAccessConfiguration::GetURI
const Aws::String & GetURI() const
Definition: SourceAccessConfiguration.h:150
Lambda_EXPORTS.h