AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserBucket.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API UserBucket();
35 AWS_EC2_API UserBucket(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API UserBucket& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
47 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
48 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
49 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
50 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
51 inline UserBucket& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
52 inline UserBucket& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
53 inline UserBucket& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
55
57
60 inline const Aws::String& GetS3Key() const{ return m_s3Key; }
61 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
62 inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
63 inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
64 inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
65 inline UserBucket& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
66 inline UserBucket& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
67 inline UserBucket& WithS3Key(const char* value) { SetS3Key(value); return *this;}
69 private:
70
71 Aws::String m_s3Bucket;
72 bool m_s3BucketHasBeenSet = false;
73
74 Aws::String m_s3Key;
75 bool m_s3KeyHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
bool S3BucketHasBeenSet() const
Definition UserBucket.h:47
const Aws::String & GetS3Key() const
Definition UserBucket.h:60
AWS_EC2_API UserBucket(const Aws::Utils::Xml::XmlNode &xmlNode)
UserBucket & WithS3Bucket(Aws::String &&value)
Definition UserBucket.h:52
UserBucket & WithS3Key(const Aws::String &value)
Definition UserBucket.h:65
UserBucket & WithS3Bucket(const Aws::String &value)
Definition UserBucket.h:51
AWS_EC2_API UserBucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UserBucket & WithS3Bucket(const char *value)
Definition UserBucket.h:53
void SetS3Key(Aws::String &&value)
Definition UserBucket.h:63
void SetS3Bucket(const Aws::String &value)
Definition UserBucket.h:48
UserBucket & WithS3Key(Aws::String &&value)
Definition UserBucket.h:66
void SetS3Bucket(Aws::String &&value)
Definition UserBucket.h:49
void SetS3Key(const char *value)
Definition UserBucket.h:64
void SetS3Bucket(const char *value)
Definition UserBucket.h:50
void SetS3Key(const Aws::String &value)
Definition UserBucket.h:62
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetS3Bucket() const
Definition UserBucket.h:46
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UserBucket & WithS3Key(const char *value)
Definition UserBucket.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream