AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UserBucket.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API UserBucket() = default;
30 AWS_EC2_API UserBucket(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API UserBucket& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
41 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
42 template <typename S3BucketT = Aws::String>
43 void SetS3Bucket(S3BucketT&& value) {
44 m_s3BucketHasBeenSet = true;
45 m_s3Bucket = std::forward<S3BucketT>(value);
46 }
47 template <typename S3BucketT = Aws::String>
48 UserBucket& WithS3Bucket(S3BucketT&& value) {
49 SetS3Bucket(std::forward<S3BucketT>(value));
50 return *this;
51 }
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) {
62 m_s3KeyHasBeenSet = true;
63 m_s3Key = std::forward<S3KeyT>(value);
64 }
65 template <typename S3KeyT = Aws::String>
66 UserBucket& WithS3Key(S3KeyT&& value) {
67 SetS3Key(std::forward<S3KeyT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_s3Bucket;
73
74 Aws::String m_s3Key;
75 bool m_s3BucketHasBeenSet = false;
76 bool m_s3KeyHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
bool S3BucketHasBeenSet() const
Definition UserBucket.h:41
const Aws::String & GetS3Key() const
Definition UserBucket.h:58
UserBucket & WithS3Bucket(S3BucketT &&value)
Definition UserBucket.h:48
AWS_EC2_API UserBucket(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetS3Bucket(S3BucketT &&value)
Definition UserBucket.h:43
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:40
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UserBucket & WithS3Key(S3KeyT &&value)
Definition UserBucket.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream