AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AggregateConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fsx/FSx_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FSx {
21namespace Model {
22
30 public:
31 AWS_FSX_API AggregateConfiguration() = default;
35
37
50 inline const Aws::Vector<Aws::String>& GetAggregates() const { return m_aggregates; }
51 inline bool AggregatesHasBeenSet() const { return m_aggregatesHasBeenSet; }
52 template <typename AggregatesT = Aws::Vector<Aws::String>>
53 void SetAggregates(AggregatesT&& value) {
54 m_aggregatesHasBeenSet = true;
55 m_aggregates = std::forward<AggregatesT>(value);
56 }
57 template <typename AggregatesT = Aws::Vector<Aws::String>>
58 AggregateConfiguration& WithAggregates(AggregatesT&& value) {
59 SetAggregates(std::forward<AggregatesT>(value));
60 return *this;
61 }
62 template <typename AggregatesT = Aws::String>
63 AggregateConfiguration& AddAggregates(AggregatesT&& value) {
64 m_aggregatesHasBeenSet = true;
65 m_aggregates.emplace_back(std::forward<AggregatesT>(value));
66 return *this;
67 }
69
71
75 inline int GetTotalConstituents() const { return m_totalConstituents; }
76 inline bool TotalConstituentsHasBeenSet() const { return m_totalConstituentsHasBeenSet; }
77 inline void SetTotalConstituents(int value) {
78 m_totalConstituentsHasBeenSet = true;
79 m_totalConstituents = value;
80 }
83 return *this;
84 }
86 private:
87 Aws::Vector<Aws::String> m_aggregates;
88
89 int m_totalConstituents{0};
90 bool m_aggregatesHasBeenSet = false;
91 bool m_totalConstituentsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace FSx
96} // namespace Aws
AWS_FSX_API AggregateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregateConfiguration & WithTotalConstituents(int value)
AggregateConfiguration & AddAggregates(AggregatesT &&value)
const Aws::Vector< Aws::String > & GetAggregates() const
AWS_FSX_API AggregateConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AggregateConfiguration & WithAggregates(AggregatesT &&value)
AWS_FSX_API AggregateConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue