AWS SDK for C++  1.8.126
AWS SDK for C++
S3Location.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 Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace ElasticBeanstalk
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
47 
51  inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
52 
56  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
57 
61  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
62 
66  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
67 
71  inline S3Location& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
72 
76  inline S3Location& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
77 
81  inline S3Location& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
82 
83 
87  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
88 
92  inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
93 
97  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
98 
102  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
103 
107  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
108 
112  inline S3Location& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
113 
117  inline S3Location& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
118 
122  inline S3Location& WithS3Key(const char* value) { SetS3Key(value); return *this;}
123 
124  private:
125 
126  Aws::String m_s3Bucket;
127  bool m_s3BucketHasBeenSet;
128 
129  Aws::String m_s3Key;
130  bool m_s3KeyHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace ElasticBeanstalk
135 } // namespace Aws
Aws::ElasticBeanstalk::Model::S3Location::SetS3Bucket
void SetS3Bucket(const char *value)
Definition: S3Location.h:66
Aws::ElasticBeanstalk::Model::S3Location::S3Location
S3Location()
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::S3Location::GetS3Bucket
const Aws::String & GetS3Bucket() const
Definition: S3Location.h:46
Aws::ElasticBeanstalk::Model::S3Location::WithS3Key
S3Location & WithS3Key(Aws::String &&value)
Definition: S3Location.h:117
Aws::ElasticBeanstalk::Model::S3Location::WithS3Bucket
S3Location & WithS3Bucket(const char *value)
Definition: S3Location.h:81
Aws::ElasticBeanstalk::Model::S3Location::SetS3Key
void SetS3Key(const char *value)
Definition: S3Location.h:107
AWSStreamFwd.h
Aws::ElasticBeanstalk::Model::S3Location::SetS3Key
void SetS3Key(const Aws::String &value)
Definition: S3Location.h:97
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::ElasticBeanstalk::Model::S3Location::operator=
S3Location & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticBeanstalk::Model::S3Location::S3KeyHasBeenSet
bool S3KeyHasBeenSet() const
Definition: S3Location.h:92
Aws::ElasticBeanstalk::Model::S3Location::SetS3Key
void SetS3Key(Aws::String &&value)
Definition: S3Location.h:102
Aws::ElasticBeanstalk::Model::S3Location::S3BucketHasBeenSet
bool S3BucketHasBeenSet() const
Definition: S3Location.h:51
AWSString.h
Aws::ElasticBeanstalk::Model::S3Location::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::S3Location
Definition: S3Location.h:33
Aws::ElasticBeanstalk::Model::S3Location::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::ElasticBeanstalk::Model::S3Location::WithS3Bucket
S3Location & WithS3Bucket(const Aws::String &value)
Definition: S3Location.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::S3Location::S3Location
S3Location(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::S3Location::GetS3Key
const Aws::String & GetS3Key() const
Definition: S3Location.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::S3Location::SetS3Bucket
void SetS3Bucket(Aws::String &&value)
Definition: S3Location.h:61
index
int index
Definition: cJSON.h:171
Aws::ElasticBeanstalk::Model::S3Location::SetS3Bucket
void SetS3Bucket(const Aws::String &value)
Definition: S3Location.h:56
Aws::ElasticBeanstalk::Model::S3Location::WithS3Key
S3Location & WithS3Key(const Aws::String &value)
Definition: S3Location.h:112
Aws::ElasticBeanstalk::Model::S3Location::WithS3Bucket
S3Location & WithS3Bucket(Aws::String &&value)
Definition: S3Location.h:76
Aws::ElasticBeanstalk::Model::S3Location::WithS3Key
S3Location & WithS3Key(const char *value)
Definition: S3Location.h:122