AWS SDK for C++  1.9.103
AWS SDK for C++
ShardFilter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Kinesis
24 {
25 namespace Model
26 {
27 
29  {
30  public:
35 
36 
37 
38  inline const ShardFilterType& GetType() const{ return m_type; }
39 
40 
41  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 
43 
44  inline void SetType(const ShardFilterType& value) { m_typeHasBeenSet = true; m_type = value; }
45 
46 
47  inline void SetType(ShardFilterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
48 
49 
50  inline ShardFilter& WithType(const ShardFilterType& value) { SetType(value); return *this;}
51 
52 
53  inline ShardFilter& WithType(ShardFilterType&& value) { SetType(std::move(value)); return *this;}
54 
55 
56 
57  inline const Aws::String& GetShardId() const{ return m_shardId; }
58 
59 
60  inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
61 
62 
63  inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
64 
65 
66  inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
67 
68 
69  inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
70 
71 
72  inline ShardFilter& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
73 
74 
75  inline ShardFilter& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
76 
77 
78  inline ShardFilter& WithShardId(const char* value) { SetShardId(value); return *this;}
79 
80 
81 
82  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
83 
84 
85  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
86 
87 
88  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
89 
90 
91  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
92 
93 
94  inline ShardFilter& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
95 
96 
97  inline ShardFilter& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
98 
99  private:
100 
101  ShardFilterType m_type;
102  bool m_typeHasBeenSet;
103 
104  Aws::String m_shardId;
105  bool m_shardIdHasBeenSet;
106 
107  Aws::Utils::DateTime m_timestamp;
108  bool m_timestampHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace Kinesis
113 } // namespace Aws
Aws::Kinesis::Model::ShardFilter::SetShardId
void SetShardId(const char *value)
Definition: ShardFilter.h:69
Aws::Kinesis::Model::ShardFilter
Definition: ShardFilter.h:29
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Kinesis::Model::ShardFilter::WithShardId
ShardFilter & WithShardId(const char *value)
Definition: ShardFilter.h:78
Aws::Kinesis::Model::ShardFilter::WithShardId
ShardFilter & WithShardId(const Aws::String &value)
Definition: ShardFilter.h:72
Aws::Kinesis::Model::ShardFilter::SetType
void SetType(const ShardFilterType &value)
Definition: ShardFilter.h:44
DateTime.h
Aws::Kinesis::Model::ShardFilter::SetShardId
void SetShardId(Aws::String &&value)
Definition: ShardFilter.h:66
Aws::Kinesis::Model::ShardFilter::WithType
ShardFilter & WithType(const ShardFilterType &value)
Definition: ShardFilter.h:50
Aws::Kinesis::Model::ShardFilter::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: ShardFilter.h:82
Aws::Kinesis::Model::ShardFilter::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: ShardFilter.h:91
Aws::Kinesis::Model::ShardFilter::ShardFilter
ShardFilter()
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::ShardFilter::SetShardId
void SetShardId(const Aws::String &value)
Definition: ShardFilter.h:63
ShardFilterType.h
Aws::Kinesis::Model::ShardFilter::operator=
ShardFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::ShardFilter::WithTimestamp
ShardFilter & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: ShardFilter.h:94
Aws::Kinesis::Model::ShardFilter::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: ShardFilter.h:88
Aws::Kinesis::Model::ShardFilter::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ShardFilter.h:41
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::ShardFilter::ShardFilter
ShardFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::ShardFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Kinesis_EXPORTS.h
Aws::Kinesis::Model::ShardFilter::WithShardId
ShardFilter & WithShardId(Aws::String &&value)
Definition: ShardFilter.h:75
Aws::Kinesis::Model::ShardFilter::GetShardId
const Aws::String & GetShardId() const
Definition: ShardFilter.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::ShardFilter::WithType
ShardFilter & WithType(ShardFilterType &&value)
Definition: ShardFilter.h:53
Aws::Kinesis::Model::ShardFilter::GetType
const ShardFilterType & GetType() const
Definition: ShardFilter.h:38
Aws::Kinesis::Model::ShardFilter::ShardIdHasBeenSet
bool ShardIdHasBeenSet() const
Definition: ShardFilter.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::ShardFilter::WithTimestamp
ShardFilter & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: ShardFilter.h:97
Aws::Kinesis::Model::ShardFilterType
ShardFilterType
Definition: ShardFilterType.h:17
Aws::Kinesis::Model::ShardFilter::SetType
void SetType(ShardFilterType &&value)
Definition: ShardFilter.h:47
Aws::Kinesis::Model::ShardFilter::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: ShardFilter.h:85