AWS SDK for C++  1.9.97
AWS SDK for C++
PackageSource.h
Go to the documentation of this file.
1 
6 #pragma once
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 ElasticsearchService
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
45 
49  inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
50 
54  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
55 
59  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
60 
64  inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
65 
69  inline PackageSource& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
70 
74  inline PackageSource& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
75 
79  inline PackageSource& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
80 
81 
85  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
86 
90  inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
91 
95  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
96 
100  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
101 
105  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
106 
110  inline PackageSource& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
111 
115  inline PackageSource& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
116 
120  inline PackageSource& WithS3Key(const char* value) { SetS3Key(value); return *this;}
121 
122  private:
123 
124  Aws::String m_s3BucketName;
125  bool m_s3BucketNameHasBeenSet;
126 
127  Aws::String m_s3Key;
128  bool m_s3KeyHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ElasticsearchService
133 } // namespace Aws
Aws::ElasticsearchService::Model::PackageSource::SetS3Key
void SetS3Key(const Aws::String &value)
Definition: PackageSource.h:95
Aws::ElasticsearchService::Model::PackageSource::SetS3Key
void SetS3Key(const char *value)
Definition: PackageSource.h:105
Aws::ElasticsearchService::Model::PackageSource::WithS3Key
PackageSource & WithS3Key(const Aws::String &value)
Definition: PackageSource.h:110
Aws::ElasticsearchService::Model::PackageSource::S3KeyHasBeenSet
bool S3KeyHasBeenSet() const
Definition: PackageSource.h:90
Aws::ElasticsearchService::Model::PackageSource::WithS3Key
PackageSource & WithS3Key(const char *value)
Definition: PackageSource.h:120
Aws::ElasticsearchService::Model::PackageSource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::PackageSource::SetS3BucketName
void SetS3BucketName(const Aws::String &value)
Definition: PackageSource.h:54
Aws::ElasticsearchService::Model::PackageSource::WithS3BucketName
PackageSource & WithS3BucketName(const Aws::String &value)
Definition: PackageSource.h:69
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::PackageSource::WithS3BucketName
PackageSource & WithS3BucketName(const char *value)
Definition: PackageSource.h:79
Aws::ElasticsearchService::Model::PackageSource::WithS3BucketName
PackageSource & WithS3BucketName(Aws::String &&value)
Definition: PackageSource.h:74
Aws::ElasticsearchService::Model::PackageSource::PackageSource
PackageSource()
Aws::ElasticsearchService::Model::PackageSource::GetS3Key
const Aws::String & GetS3Key() const
Definition: PackageSource.h:85
Aws::ElasticsearchService::Model::PackageSource::S3BucketNameHasBeenSet
bool S3BucketNameHasBeenSet() const
Definition: PackageSource.h:49
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::PackageSource::SetS3Key
void SetS3Key(Aws::String &&value)
Definition: PackageSource.h:100
Aws::ElasticsearchService::Model::PackageSource::WithS3Key
PackageSource & WithS3Key(Aws::String &&value)
Definition: PackageSource.h:115
Aws::ElasticsearchService::Model::PackageSource::SetS3BucketName
void SetS3BucketName(const char *value)
Definition: PackageSource.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::PackageSource::SetS3BucketName
void SetS3BucketName(Aws::String &&value)
Definition: PackageSource.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::PackageSource::PackageSource
PackageSource(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::PackageSource::operator=
PackageSource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::PackageSource::GetS3BucketName
const Aws::String & GetS3BucketName() const
Definition: PackageSource.h:44
Aws::ElasticsearchService::Model::PackageSource
Definition: PackageSource.h:33