AWS SDK for C++  1.9.123
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 
35  {
36  public:
41 
42 
62  inline const SourceAccessType& GetType() const{ return m_type; }
63 
83  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 
104  inline void SetType(const SourceAccessType& value) { m_typeHasBeenSet = true; m_type = value; }
105 
125  inline void SetType(SourceAccessType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
126 
146  inline SourceAccessConfiguration& WithType(const SourceAccessType& value) { SetType(value); return *this;}
147 
167  inline SourceAccessConfiguration& WithType(SourceAccessType&& value) { SetType(std::move(value)); return *this;}
168 
169 
175  inline const Aws::String& GetURI() const{ return m_uRI; }
176 
182  inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
183 
189  inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
190 
196  inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
197 
203  inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
204 
210  inline SourceAccessConfiguration& WithURI(const Aws::String& value) { SetURI(value); return *this;}
211 
217  inline SourceAccessConfiguration& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
218 
224  inline SourceAccessConfiguration& WithURI(const char* value) { SetURI(value); return *this;}
225 
226  private:
227 
228  SourceAccessType m_type;
229  bool m_typeHasBeenSet;
230 
231  Aws::String m_uRI;
232  bool m_uRIHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace Lambda
237 } // 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:104
Aws::Lambda::Model::SourceAccessConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::SourceAccessConfiguration::URIHasBeenSet
bool URIHasBeenSet() const
Definition: SourceAccessConfiguration.h:182
Aws::Lambda::Model::SourceAccessConfiguration
Definition: SourceAccessConfiguration.h:35
Aws::Lambda::Model::SourceAccessConfiguration::WithType
SourceAccessConfiguration & WithType(SourceAccessType &&value)
Definition: SourceAccessConfiguration.h:167
Aws::Lambda::Model::SourceAccessType
SourceAccessType
Definition: SourceAccessType.h:17
Aws::Lambda::Model::SourceAccessConfiguration::WithType
SourceAccessConfiguration & WithType(const SourceAccessType &value)
Definition: SourceAccessConfiguration.h:146
Aws::Lambda::Model::SourceAccessConfiguration::WithURI
SourceAccessConfiguration & WithURI(Aws::String &&value)
Definition: SourceAccessConfiguration.h:217
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:189
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lambda::Model::SourceAccessConfiguration::SourceAccessConfiguration
SourceAccessConfiguration()
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lambda::Model::SourceAccessConfiguration::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: SourceAccessConfiguration.h:83
Aws::Lambda::Model::SourceAccessConfiguration::GetType
const SourceAccessType & GetType() const
Definition: SourceAccessConfiguration.h:62
Aws::Lambda::Model::SourceAccessConfiguration::WithURI
SourceAccessConfiguration & WithURI(const Aws::String &value)
Definition: SourceAccessConfiguration.h:210
Aws::Lambda::Model::SourceAccessConfiguration::SetURI
void SetURI(Aws::String &&value)
Definition: SourceAccessConfiguration.h:196
Aws::Lambda::Model::SourceAccessConfiguration::SetType
void SetType(SourceAccessType &&value)
Definition: SourceAccessConfiguration.h:125
Aws::Lambda::Model::SourceAccessConfiguration::SetURI
void SetURI(const char *value)
Definition: SourceAccessConfiguration.h:203
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:224
Aws::Lambda::Model::SourceAccessConfiguration::GetURI
const Aws::String & GetURI() const
Definition: SourceAccessConfiguration.h:175
Lambda_EXPORTS.h