AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
Category.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityAgent {
20namespace Model {
21
27class Category {
28 public:
29 AWS_SECURITYAGENT_API Category() = default;
30 AWS_SECURITYAGENT_API Category(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYAGENT_API Category& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 Category& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline bool GetIsPrimary() const { return m_isPrimary; }
57 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
58 inline void SetIsPrimary(bool value) {
59 m_isPrimaryHasBeenSet = true;
60 m_isPrimary = value;
61 }
62 inline Category& WithIsPrimary(bool value) {
63 SetIsPrimary(value);
64 return *this;
65 }
67 private:
68 Aws::String m_name;
69
70 bool m_isPrimary{false};
71 bool m_nameHasBeenSet = false;
72 bool m_isPrimaryHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace SecurityAgent
77} // namespace Aws
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API Category()=default
AWS_SECURITYAGENT_API Category & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Category.h:38
Category & WithIsPrimary(bool value)
Definition Category.h:62
void SetName(NameT &&value)
Definition Category.h:41
AWS_SECURITYAGENT_API Category(Aws::Utils::Json::JsonView jsonValue)
Category & WithName(NameT &&value)
Definition Category.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue