AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExportTaskS3Location.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 ExportTaskS3Location() = default;
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 ExportTaskS3Location& WithS3Bucket(S3BucketT&& value) {
50 SetS3Bucket(std::forward<S3BucketT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
60 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
61 template <typename S3PrefixT = Aws::String>
62 void SetS3Prefix(S3PrefixT&& value) {
63 m_s3PrefixHasBeenSet = true;
64 m_s3Prefix = std::forward<S3PrefixT>(value);
65 }
66 template <typename S3PrefixT = Aws::String>
67 ExportTaskS3Location& WithS3Prefix(S3PrefixT&& value) {
68 SetS3Prefix(std::forward<S3PrefixT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_s3Bucket;
74
75 Aws::String m_s3Prefix;
76 bool m_s3BucketHasBeenSet = false;
77 bool m_s3PrefixHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API ExportTaskS3Location(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ExportTaskS3Location & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportTaskS3Location & WithS3Bucket(S3BucketT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ExportTaskS3Location & WithS3Prefix(S3PrefixT &&value)
const Aws::String & GetS3Prefix() const
AWS_EC2_API ExportTaskS3Location()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetS3Bucket() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream