AWS SDK for C++  1.9.125
AWS SDK for C++
StorageLocation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetBucket() const{ return m_bucket; }
46 
50  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
51 
55  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
56 
60  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
61 
65  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
66 
70  inline StorageLocation& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
71 
75  inline StorageLocation& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
76 
80  inline StorageLocation& WithBucket(const char* value) { SetBucket(value); return *this;}
81 
82 
86  inline const Aws::String& GetKey() const{ return m_key; }
87 
91  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
92 
96  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
97 
101  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
102 
106  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
107 
111  inline StorageLocation& WithKey(const Aws::String& value) { SetKey(value); return *this;}
112 
116  inline StorageLocation& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
117 
121  inline StorageLocation& WithKey(const char* value) { SetKey(value); return *this;}
122 
123  private:
124 
125  Aws::String m_bucket;
126  bool m_bucketHasBeenSet;
127 
128  Aws::String m_key;
129  bool m_keyHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::StorageLocation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::StorageLocation::SetKey
void SetKey(const Aws::String &value)
Definition: StorageLocation.h:96
Aws::EC2::Model::StorageLocation::SetKey
void SetKey(const char *value)
Definition: StorageLocation.h:106
Aws::EC2::Model::StorageLocation::GetKey
const Aws::String & GetKey() const
Definition: StorageLocation.h:86
Aws::EC2::Model::StorageLocation::StorageLocation
StorageLocation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::StorageLocation::StorageLocation
StorageLocation()
Aws::EC2::Model::StorageLocation::WithKey
StorageLocation & WithKey(const Aws::String &value)
Definition: StorageLocation.h:111
Aws::EC2::Model::StorageLocation::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: StorageLocation.h:50
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::StorageLocation::WithKey
StorageLocation & WithKey(Aws::String &&value)
Definition: StorageLocation.h:116
AWSStreamFwd.h
Aws::EC2::Model::StorageLocation::WithBucket
StorageLocation & WithBucket(const char *value)
Definition: StorageLocation.h:80
Aws::EC2::Model::StorageLocation::WithBucket
StorageLocation & WithBucket(Aws::String &&value)
Definition: StorageLocation.h:75
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::StorageLocation::SetKey
void SetKey(Aws::String &&value)
Definition: StorageLocation.h:101
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::StorageLocation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::StorageLocation
Definition: StorageLocation.h:32
Aws::EC2::Model::StorageLocation::WithBucket
StorageLocation & WithBucket(const Aws::String &value)
Definition: StorageLocation.h:70
Aws::EC2::Model::StorageLocation::operator=
StorageLocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::StorageLocation::WithKey
StorageLocation & WithKey(const char *value)
Definition: StorageLocation.h:121
Aws::EC2::Model::StorageLocation::SetBucket
void SetBucket(Aws::String &&value)
Definition: StorageLocation.h:60
Aws::EC2::Model::StorageLocation::SetBucket
void SetBucket(const char *value)
Definition: StorageLocation.h:65
Aws::EC2::Model::StorageLocation::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: StorageLocation.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::StorageLocation::SetBucket
void SetBucket(const Aws::String &value)
Definition: StorageLocation.h:55
EC2_EXPORTS.h
Aws::EC2::Model::StorageLocation::GetBucket
const Aws::String & GetBucket() const
Definition: StorageLocation.h:45