AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VPCLattice
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_VPCLATTICE_API RuleSummary() = default;
36 AWS_VPCLATTICE_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API RuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 RuleSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
58 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
59 template<typename CreatedAtT = Aws::Utils::DateTime>
60 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
61 template<typename CreatedAtT = Aws::Utils::DateTime>
62 RuleSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
64
66
69 inline const Aws::String& GetId() const { return m_id; }
70 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
71 template<typename IdT = Aws::String>
72 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
73 template<typename IdT = Aws::String>
74 RuleSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
76
78
81 inline bool GetIsDefault() const { return m_isDefault; }
82 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
83 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
84 inline RuleSummary& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
86
88
92 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
93 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
94 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
95 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
96 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
97 RuleSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template<typename NameT = Aws::String>
107 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
108 template<typename NameT = Aws::String>
109 RuleSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
111
113
116 inline int GetPriority() const { return m_priority; }
117 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
118 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
119 inline RuleSummary& WithPriority(int value) { SetPriority(value); return *this;}
121 private:
122
123 Aws::String m_arn;
124 bool m_arnHasBeenSet = false;
125
126 Aws::Utils::DateTime m_createdAt{};
127 bool m_createdAtHasBeenSet = false;
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 bool m_isDefault{false};
133 bool m_isDefaultHasBeenSet = false;
134
135 Aws::Utils::DateTime m_lastUpdatedAt{};
136 bool m_lastUpdatedAtHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 int m_priority{0};
142 bool m_priorityHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace VPCLattice
147} // namespace Aws
RuleSummary & WithId(IdT &&value)
Definition RuleSummary.h:74
RuleSummary & WithCreatedAt(CreatedAtT &&value)
Definition RuleSummary.h:62
const Aws::String & GetArn() const
Definition RuleSummary.h:45
const Aws::Utils::DateTime & GetCreatedAt() const
Definition RuleSummary.h:57
RuleSummary & WithIsDefault(bool value)
Definition RuleSummary.h:84
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleSummary & WithPriority(int value)
AWS_VPCLATTICE_API RuleSummary()=default
const Aws::String & GetId() const
Definition RuleSummary.h:69
void SetCreatedAt(CreatedAtT &&value)
Definition RuleSummary.h:60
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition RuleSummary.h:95
RuleSummary & WithArn(ArnT &&value)
Definition RuleSummary.h:50
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition RuleSummary.h:92
AWS_VPCLATTICE_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithName(NameT &&value)
const Aws::String & GetName() const
RuleSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition RuleSummary.h:97
AWS_VPCLATTICE_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue