AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename S3BucketT = Aws::String>
49 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
50 template<typename S3BucketT = Aws::String>
51 UserBucket& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
53
55
58 inline const Aws::String& GetS3Key() const { return m_s3Key; }
59 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
60 template<typename S3KeyT = Aws::String>
61 void SetS3Key(S3KeyT&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::forward<S3KeyT>(value); }
62 template<typename S3KeyT = Aws::String>
63 UserBucket& WithS3Key(S3KeyT&& value) { SetS3Key(std::forward<S3KeyT>(value)); return *this;}
65 private:
66
67 Aws::String m_s3Bucket;
68 bool m_s3BucketHasBeenSet = false;
69
70 Aws::String m_s3Key;
71 bool m_s3KeyHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EC2
76} // namespace Aws
bool S3BucketHasBeenSet() const
Definition UserBucket.h:47
const Aws::String & GetS3Key() const
Definition UserBucket.h:58
UserBucket & WithS3Bucket(S3BucketT &&value)
Definition UserBucket.h:51
AWS_EC2_API UserBucket(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetS3Bucket(S3BucketT &&value)
Definition UserBucket.h:49
void SetS3Key(S3KeyT &&value)
Definition UserBucket.h:61
AWS_EC2_API UserBucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API UserBucket()=default
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(S3KeyT &&value)
Definition UserBucket.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream