AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
50 inline RuleSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline RuleSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline RuleSummary& WithArn(const char* value) { SetArn(value); return *this;}
54
56
60 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
63 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
64 inline RuleSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
65 inline RuleSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetId() const{ return m_id; }
73 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
74 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
75 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
76 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
77 inline RuleSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
78 inline RuleSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
79 inline RuleSummary& WithId(const char* value) { SetId(value); return *this;}
81
83
86 inline bool GetIsDefault() const{ return m_isDefault; }
87 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
88 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
89 inline RuleSummary& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
91
93
97 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
98 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
99 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
100 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
101 inline RuleSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
102 inline RuleSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetName() const{ return m_name; }
110 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
111 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
112 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
113 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
114 inline RuleSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
115 inline RuleSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 inline RuleSummary& WithName(const char* value) { SetName(value); return *this;}
118
120
123 inline int GetPriority() const{ return m_priority; }
124 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
125 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
126 inline RuleSummary& WithPriority(int value) { SetPriority(value); return *this;}
128 private:
129
130 Aws::String m_arn;
131 bool m_arnHasBeenSet = false;
132
133 Aws::Utils::DateTime m_createdAt;
134 bool m_createdAtHasBeenSet = false;
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 bool m_isDefault;
140 bool m_isDefaultHasBeenSet = false;
141
142 Aws::Utils::DateTime m_lastUpdatedAt;
143 bool m_lastUpdatedAtHasBeenSet = false;
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
148 int m_priority;
149 bool m_priorityHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace VPCLattice
154} // namespace Aws
void SetId(const Aws::String &value)
Definition RuleSummary.h:74
void SetId(Aws::String &&value)
Definition RuleSummary.h:75
void SetArn(const Aws::String &value)
Definition RuleSummary.h:47
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition RuleSummary.h:62
RuleSummary & WithName(Aws::String &&value)
RuleSummary & WithId(Aws::String &&value)
Definition RuleSummary.h:78
const Aws::String & GetArn() const
Definition RuleSummary.h:45
const Aws::Utils::DateTime & GetCreatedAt() const
Definition RuleSummary.h:60
RuleSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
RuleSummary & WithIsDefault(bool value)
Definition RuleSummary.h:89
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleSummary & WithPriority(int value)
RuleSummary & WithArn(const Aws::String &value)
Definition RuleSummary.h:50
void SetArn(const char *value)
Definition RuleSummary.h:49
RuleSummary & WithName(const Aws::String &value)
RuleSummary & WithArn(Aws::String &&value)
Definition RuleSummary.h:51
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition RuleSummary.h:99
void SetName(Aws::String &&value)
AWS_VPCLATTICE_API RuleSummary()
const Aws::String & GetId() const
Definition RuleSummary.h:72
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition RuleSummary.h:63
void SetName(const char *value)
RuleSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition RuleSummary.h:65
RuleSummary & WithName(const char *value)
RuleSummary & WithArn(const char *value)
Definition RuleSummary.h:52
void SetName(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition RuleSummary.h:97
AWS_VPCLATTICE_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithId(const char *value)
Definition RuleSummary.h:79
const Aws::String & GetName() const
RuleSummary & WithId(const Aws::String &value)
Definition RuleSummary.h:77
RuleSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
AWS_VPCLATTICE_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition RuleSummary.h:76
RuleSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition RuleSummary.h:64
void SetArn(Aws::String &&value)
Definition RuleSummary.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue