AWS SDK for C++  1.9.128
AWS SDK for C++
UserBucket.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
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 EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
46 
50  inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
51 
55  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
56 
60  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
61 
65  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
66 
70  inline UserBucket& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
71 
75  inline UserBucket& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
76 
80  inline UserBucket& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
81 
82 
86  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
87 
91  inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
92 
96  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
97 
101  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
102 
106  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
107 
111  inline UserBucket& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
112 
116  inline UserBucket& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
117 
121  inline UserBucket& WithS3Key(const char* value) { SetS3Key(value); return *this;}
122 
123  private:
124 
125  Aws::String m_s3Bucket;
126  bool m_s3BucketHasBeenSet;
127 
128  Aws::String m_s3Key;
129  bool m_s3KeyHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::UserBucket::S3BucketHasBeenSet
bool S3BucketHasBeenSet() const
Definition: UserBucket.h:50
Aws::EC2::Model::UserBucket::WithS3Bucket
UserBucket & WithS3Bucket(const Aws::String &value)
Definition: UserBucket.h:70
Aws::EC2::Model::UserBucket::WithS3Bucket
UserBucket & WithS3Bucket(const char *value)
Definition: UserBucket.h:80
Aws::EC2::Model::UserBucket::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::UserBucket::GetS3Bucket
const Aws::String & GetS3Bucket() const
Definition: UserBucket.h:45
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::UserBucket::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::EC2::Model::UserBucket::SetS3Bucket
void SetS3Bucket(const Aws::String &value)
Definition: UserBucket.h:55
Aws::EC2::Model::UserBucket::SetS3Key
void SetS3Key(const char *value)
Definition: UserBucket.h:106
Aws::EC2::Model::UserBucket::UserBucket
UserBucket()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UserBucket
Definition: UserBucket.h:32
AWSString.h
Aws::EC2::Model::UserBucket::SetS3Bucket
void SetS3Bucket(Aws::String &&value)
Definition: UserBucket.h:60
Aws::EC2::Model::UserBucket::WithS3Key
UserBucket & WithS3Key(const char *value)
Definition: UserBucket.h:121
Aws::EC2::Model::UserBucket::WithS3Bucket
UserBucket & WithS3Bucket(Aws::String &&value)
Definition: UserBucket.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UserBucket::SetS3Key
void SetS3Key(const Aws::String &value)
Definition: UserBucket.h:96
Aws::EC2::Model::UserBucket::SetS3Key
void SetS3Key(Aws::String &&value)
Definition: UserBucket.h:101
Aws::EC2::Model::UserBucket::UserBucket
UserBucket(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::UserBucket::WithS3Key
UserBucket & WithS3Key(Aws::String &&value)
Definition: UserBucket.h:116
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::UserBucket::operator=
UserBucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::UserBucket::WithS3Key
UserBucket & WithS3Key(const Aws::String &value)
Definition: UserBucket.h:111
Aws::EC2::Model::UserBucket::S3KeyHasBeenSet
bool S3KeyHasBeenSet() const
Definition: UserBucket.h:91
EC2_EXPORTS.h
Aws::EC2::Model::UserBucket::GetS3Key
const Aws::String & GetS3Key() const
Definition: UserBucket.h:86
Aws::EC2::Model::UserBucket::SetS3Bucket
void SetS3Bucket(const char *value)
Definition: UserBucket.h:65