AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
S3Location.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/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticBeanstalk {
20namespace Model {
21
29 public:
30 AWS_ELASTICBEANSTALK_API S3Location() = default;
31 AWS_ELASTICBEANSTALK_API S3Location(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICBEANSTALK_API S3Location& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
43 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
44 template <typename S3BucketT = Aws::String>
45 void SetS3Bucket(S3BucketT&& value) {
46 m_s3BucketHasBeenSet = true;
47 m_s3Bucket = std::forward<S3BucketT>(value);
48 }
49 template <typename S3BucketT = Aws::String>
50 S3Location& WithS3Bucket(S3BucketT&& value) {
51 SetS3Bucket(std::forward<S3BucketT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetS3Key() const { return m_s3Key; }
61 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
62 template <typename S3KeyT = Aws::String>
63 void SetS3Key(S3KeyT&& value) {
64 m_s3KeyHasBeenSet = true;
65 m_s3Key = std::forward<S3KeyT>(value);
66 }
67 template <typename S3KeyT = Aws::String>
68 S3Location& WithS3Key(S3KeyT&& value) {
69 SetS3Key(std::forward<S3KeyT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_s3Bucket;
75
76 Aws::String m_s3Key;
77 bool m_s3BucketHasBeenSet = false;
78 bool m_s3KeyHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ElasticBeanstalk
83} // namespace Aws
S3Location & WithS3Key(S3KeyT &&value)
Definition S3Location.h:68
const Aws::String & GetS3Key() const
Definition S3Location.h:60
AWS_ELASTICBEANSTALK_API S3Location & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetS3Bucket() const
Definition S3Location.h:42
AWS_ELASTICBEANSTALK_API S3Location(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API S3Location()=default
void SetS3Bucket(S3BucketT &&value)
Definition S3Location.h:45
S3Location & WithS3Bucket(S3BucketT &&value)
Definition S3Location.h:50
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_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