AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UserBucketDetails.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
29 public:
30 AWS_EC2_API UserBucketDetails() = default;
31 AWS_EC2_API UserBucketDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
42 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
43 template <typename S3BucketT = Aws::String>
44 void SetS3Bucket(S3BucketT&& value) {
45 m_s3BucketHasBeenSet = true;
46 m_s3Bucket = std::forward<S3BucketT>(value);
47 }
48 template <typename S3BucketT = Aws::String>
49 UserBucketDetails& WithS3Bucket(S3BucketT&& value) {
50 SetS3Bucket(std::forward<S3BucketT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetS3Key() const { return m_s3Key; }
60 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
61 template <typename S3KeyT = Aws::String>
62 void SetS3Key(S3KeyT&& value) {
63 m_s3KeyHasBeenSet = true;
64 m_s3Key = std::forward<S3KeyT>(value);
65 }
66 template <typename S3KeyT = Aws::String>
67 UserBucketDetails& WithS3Key(S3KeyT&& value) {
68 SetS3Key(std::forward<S3KeyT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_s3Bucket;
74
75 Aws::String m_s3Key;
76 bool m_s3BucketHasBeenSet = false;
77 bool m_s3KeyHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
const Aws::String & GetS3Key() const
void SetS3Bucket(S3BucketT &&value)
AWS_EC2_API UserBucketDetails()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API UserBucketDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
UserBucketDetails & WithS3Bucket(S3BucketT &&value)
UserBucketDetails & WithS3Key(S3KeyT &&value)
AWS_EC2_API UserBucketDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetS3Bucket() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream