AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkResourceDefinition.h
1
6#pragma once
7#include <aws/privatenetworks/PrivateNetworks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/privatenetworks/model/NetworkResourceDefinitionType.h>
10#include <aws/privatenetworks/model/NameValuePair.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PrivateNetworks
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PRIVATENETWORKS_API NetworkResourceDefinition();
38 AWS_PRIVATENETWORKS_API NetworkResourceDefinition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetCount() const{ return m_count; }
48 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
49 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
50 inline NetworkResourceDefinition& WithCount(int value) { SetCount(value); return *this;}
52
54
57 inline const Aws::Vector<NameValuePair>& GetOptions() const{ return m_options; }
58 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
59 inline void SetOptions(const Aws::Vector<NameValuePair>& value) { m_optionsHasBeenSet = true; m_options = value; }
60 inline void SetOptions(Aws::Vector<NameValuePair>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
61 inline NetworkResourceDefinition& WithOptions(const Aws::Vector<NameValuePair>& value) { SetOptions(value); return *this;}
62 inline NetworkResourceDefinition& WithOptions(Aws::Vector<NameValuePair>&& value) { SetOptions(std::move(value)); return *this;}
63 inline NetworkResourceDefinition& AddOptions(const NameValuePair& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
64 inline NetworkResourceDefinition& AddOptions(NameValuePair&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; }
66
68
71 inline const NetworkResourceDefinitionType& GetType() const{ return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(const NetworkResourceDefinitionType& value) { m_typeHasBeenSet = true; m_type = value; }
74 inline void SetType(NetworkResourceDefinitionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
75 inline NetworkResourceDefinition& WithType(const NetworkResourceDefinitionType& value) { SetType(value); return *this;}
76 inline NetworkResourceDefinition& WithType(NetworkResourceDefinitionType&& value) { SetType(std::move(value)); return *this;}
78 private:
79
80 int m_count;
81 bool m_countHasBeenSet = false;
82
84 bool m_optionsHasBeenSet = false;
85
87 bool m_typeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace PrivateNetworks
92} // namespace Aws
void SetType(const NetworkResourceDefinitionType &value)
NetworkResourceDefinition & AddOptions(const NameValuePair &value)
AWS_PRIVATENETWORKS_API NetworkResourceDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetType(NetworkResourceDefinitionType &&value)
void SetOptions(Aws::Vector< NameValuePair > &&value)
const NetworkResourceDefinitionType & GetType() const
NetworkResourceDefinition & WithOptions(Aws::Vector< NameValuePair > &&value)
const Aws::Vector< NameValuePair > & GetOptions() const
void SetOptions(const Aws::Vector< NameValuePair > &value)
NetworkResourceDefinition & AddOptions(NameValuePair &&value)
AWS_PRIVATENETWORKS_API NetworkResourceDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkResourceDefinition & WithType(const NetworkResourceDefinitionType &value)
NetworkResourceDefinition & WithOptions(const Aws::Vector< NameValuePair > &value)
AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkResourceDefinition & WithType(NetworkResourceDefinitionType &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue