AWS SDK for C++  1.9.129
AWS SDK for C++
Bucket.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Bucket();
39 
40 
44  inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
45 
49  inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
50 
54  inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
55 
59  inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
60 
64  inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
65 
69  inline Bucket& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
70 
74  inline Bucket& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
75 
79  inline Bucket& WithKeyValue(const char* value) { SetKeyValue(value); return *this;}
80 
81 
86  inline int GetCount() const{ return m_count; }
87 
92  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
93 
98  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
99 
104  inline Bucket& WithCount(int value) { SetCount(value); return *this;}
105 
106  private:
107 
108  Aws::String m_keyValue;
109  bool m_keyValueHasBeenSet;
110 
111  int m_count;
112  bool m_countHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace IoT
117 } // namespace Aws
Aws::IoT::Model::Bucket::Bucket
Bucket()
Aws::IoT::Model::Bucket::WithKeyValue
Bucket & WithKeyValue(Aws::String &&value)
Definition: Bucket.h:74
Aws::IoT::Model::Bucket::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::Bucket::CountHasBeenSet
bool CountHasBeenSet() const
Definition: Bucket.h:92
Aws::IoT::Model::Bucket::WithKeyValue
Bucket & WithKeyValue(const char *value)
Definition: Bucket.h:79
Aws::IoT::Model::Bucket::Bucket
Bucket(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Bucket::SetKeyValue
void SetKeyValue(const Aws::String &value)
Definition: Bucket.h:54
Aws::IoT::Model::Bucket::operator=
Bucket & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Bucket::SetKeyValue
void SetKeyValue(const char *value)
Definition: Bucket.h:64
Aws::IoT::Model::Bucket::SetCount
void SetCount(int value)
Definition: Bucket.h:98
Aws::IoT::Model::Bucket
Definition: Bucket.h:33
Aws::IoT::Model::Bucket::SetKeyValue
void SetKeyValue(Aws::String &&value)
Definition: Bucket.h:59
Aws::IoT::Model::Bucket::GetKeyValue
const Aws::String & GetKeyValue() const
Definition: Bucket.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::Bucket::KeyValueHasBeenSet
bool KeyValueHasBeenSet() const
Definition: Bucket.h:49
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::Bucket::WithKeyValue
Bucket & WithKeyValue(const Aws::String &value)
Definition: Bucket.h:69
Aws::IoT::Model::Bucket::WithCount
Bucket & WithCount(int value)
Definition: Bucket.h:104
Aws::IoT::Model::Bucket::GetCount
int GetCount() const
Definition: Bucket.h:86
IoT_EXPORTS.h