AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RulesPackage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector {
20namespace Model {
21
30 public:
31 AWS_INSPECTOR_API RulesPackage() = default;
32 AWS_INSPECTOR_API RulesPackage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR_API RulesPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 RulesPackage& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(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 RulesPackage& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetVersion() const { return m_version; }
77 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
78 template <typename VersionT = Aws::String>
79 void SetVersion(VersionT&& value) {
80 m_versionHasBeenSet = true;
81 m_version = std::forward<VersionT>(value);
82 }
83 template <typename VersionT = Aws::String>
84 RulesPackage& WithVersion(VersionT&& value) {
85 SetVersion(std::forward<VersionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetProvider() const { return m_provider; }
95 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
96 template <typename ProviderT = Aws::String>
97 void SetProvider(ProviderT&& value) {
98 m_providerHasBeenSet = true;
99 m_provider = std::forward<ProviderT>(value);
100 }
101 template <typename ProviderT = Aws::String>
102 RulesPackage& WithProvider(ProviderT&& value) {
103 SetProvider(std::forward<ProviderT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template <typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) {
116 m_descriptionHasBeenSet = true;
117 m_description = std::forward<DescriptionT>(value);
118 }
119 template <typename DescriptionT = Aws::String>
120 RulesPackage& WithDescription(DescriptionT&& value) {
121 SetDescription(std::forward<DescriptionT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_arn;
127
128 Aws::String m_name;
129
130 Aws::String m_version;
131
132 Aws::String m_provider;
133
134 Aws::String m_description;
135 bool m_arnHasBeenSet = false;
136 bool m_nameHasBeenSet = false;
137 bool m_versionHasBeenSet = false;
138 bool m_providerHasBeenSet = false;
139 bool m_descriptionHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Inspector
144} // namespace Aws
RulesPackage & WithProvider(ProviderT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetArn() const
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR_API RulesPackage(Aws::Utils::Json::JsonView jsonValue)
void SetProvider(ProviderT &&value)
RulesPackage & WithName(NameT &&value)
const Aws::String & GetVersion() const
AWS_INSPECTOR_API RulesPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
RulesPackage & WithDescription(DescriptionT &&value)
void SetVersion(VersionT &&value)
const Aws::String & GetProvider() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetName() const
RulesPackage & WithArn(ArnT &&value)
RulesPackage & WithVersion(VersionT &&value)
AWS_INSPECTOR_API RulesPackage()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue