AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Field.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9#include <aws/resiliencehub/model/FieldAggregationType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
29class Field {
30 public:
31 AWS_RESILIENCEHUB_API Field() = default;
32 AWS_RESILIENCEHUB_API Field(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API Field& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline FieldAggregationType GetAggregation() const { return m_aggregation; }
43 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
45 m_aggregationHasBeenSet = true;
46 m_aggregation = value;
47 }
49 SetAggregation(value);
50 return *this;
51 }
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) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 Field& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::String m_name;
75 bool m_aggregationHasBeenSet = false;
76 bool m_nameHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ResilienceHub
81} // namespace Aws
AWS_RESILIENCEHUB_API Field()=default
void SetAggregation(FieldAggregationType value)
Definition Field.h:44
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:66
Field & WithAggregation(FieldAggregationType value)
Definition Field.h:48
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool AggregationHasBeenSet() const
Definition Field.h:43
FieldAggregationType GetAggregation() const
Definition Field.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue