AWS SDK for C++  1.8.95
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:
35  S3Location();
36  S3Location(const Aws::Utils::Xml::XmlNode& xmlNode);
37  S3Location& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
const Aws::String & GetS3Key() const
Definition: S3Location.h:87
S3Location & WithS3Bucket(Aws::String &&value)
Definition: S3Location.h:76
S3Location & WithS3Key(const char *value)
Definition: S3Location.h:122
void SetS3Key(Aws::String &&value)
Definition: S3Location.h:102
#define AWS_ELASTICBEANSTALK_API
void SetS3Bucket(const Aws::String &value)
Definition: S3Location.h:56
void SetS3Bucket(Aws::String &&value)
Definition: S3Location.h:61
S3Location & WithS3Key(Aws::String &&value)
Definition: S3Location.h:117
int index
Definition: cJSON.h:171
S3Location & WithS3Bucket(const Aws::String &value)
Definition: S3Location.h:71
void SetS3Key(const char *value)
Definition: S3Location.h:107
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
S3Location & WithS3Key(const Aws::String &value)
Definition: S3Location.h:112
const Aws::String & GetS3Bucket() const
Definition: S3Location.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetS3Bucket(const char *value)
Definition: S3Location.h:66
S3Location & WithS3Bucket(const char *value)
Definition: S3Location.h:81
void SetS3Key(const Aws::String &value)
Definition: S3Location.h:97