AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Field.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/FieldAggregationType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ResilienceHub
23{
24namespace Model
25{
26
33 class Field
34 {
35 public:
36 AWS_RESILIENCEHUB_API Field() = default;
37 AWS_RESILIENCEHUB_API Field(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUB_API Field& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline FieldAggregationType GetAggregation() const { return m_aggregation; }
49 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
50 inline void SetAggregation(FieldAggregationType value) { m_aggregationHasBeenSet = true; m_aggregation = value; }
51 inline Field& WithAggregation(FieldAggregationType value) { SetAggregation(value); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 Field& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65 private:
66
68 bool m_aggregationHasBeenSet = false;
69
70 Aws::String m_name;
71 bool m_nameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace ResilienceHub
76} // namespace Aws
AWS_RESILIENCEHUB_API Field()=default
void SetAggregation(FieldAggregationType value)
Definition Field.h:50
const Aws::String & GetName() const
Definition Field.h:58
void SetName(NameT &&value)
Definition Field.h:61
AWS_RESILIENCEHUB_API Field(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API Field & operator=(Aws::Utils::Json::JsonView jsonValue)
Field & WithName(NameT &&value)
Definition Field.h:63
Field & WithAggregation(FieldAggregationType value)
Definition Field.h:51
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool AggregationHasBeenSet() const
Definition Field.h:49
FieldAggregationType GetAggregation() const
Definition Field.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue