AWS SDK for C++  1.9.108
AWS SDK for C++
FirewallPolicyMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace NetworkFirewall
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
78  inline FirewallPolicyMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
79 
84  inline FirewallPolicyMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 
90  inline FirewallPolicyMetadata& WithName(const char* value) { SetName(value); return *this;}
91 
92 
96  inline const Aws::String& GetArn() const{ return m_arn; }
97 
101  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
102 
106  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
107 
111  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
112 
116  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
117 
121  inline FirewallPolicyMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
122 
126  inline FirewallPolicyMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
127 
131  inline FirewallPolicyMetadata& WithArn(const char* value) { SetArn(value); return *this;}
132 
133  private:
134 
135  Aws::String m_name;
136  bool m_nameHasBeenSet;
137 
138  Aws::String m_arn;
139  bool m_arnHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace NetworkFirewall
144 } // namespace Aws
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::SetName
void SetName(const char *value)
Definition: FirewallPolicyMetadata.h:72
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::SetArn
void SetArn(Aws::String &&value)
Definition: FirewallPolicyMetadata.h:111
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::SetArn
void SetArn(const char *value)
Definition: FirewallPolicyMetadata.h:116
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: FirewallPolicyMetadata.h:101
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::FirewallPolicyMetadata
FirewallPolicyMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::NameHasBeenSet
bool NameHasBeenSet() const
Definition: FirewallPolicyMetadata.h:54
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::GetName
const Aws::String & GetName() const
Definition: FirewallPolicyMetadata.h:48
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::SetName
void SetName(const Aws::String &value)
Definition: FirewallPolicyMetadata.h:60
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::GetArn
const Aws::String & GetArn() const
Definition: FirewallPolicyMetadata.h:96
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::SetArn
void SetArn(const Aws::String &value)
Definition: FirewallPolicyMetadata.h:106
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::operator=
FirewallPolicyMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::WithName
FirewallPolicyMetadata & WithName(const Aws::String &value)
Definition: FirewallPolicyMetadata.h:78
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_NETWORKFIREWALL_API
#define AWS_NETWORKFIREWALL_API
Definition: NetworkFirewall_EXPORTS.h:28
Aws::NetworkFirewall::Model::FirewallPolicyMetadata
Definition: FirewallPolicyMetadata.h:36
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::FirewallPolicyMetadata
FirewallPolicyMetadata()
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::WithName
FirewallPolicyMetadata & WithName(const char *value)
Definition: FirewallPolicyMetadata.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::WithName
FirewallPolicyMetadata & WithName(Aws::String &&value)
Definition: FirewallPolicyMetadata.h:84
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::WithArn
FirewallPolicyMetadata & WithArn(Aws::String &&value)
Definition: FirewallPolicyMetadata.h:126
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::WithArn
FirewallPolicyMetadata & WithArn(const Aws::String &value)
Definition: FirewallPolicyMetadata.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::SetName
void SetName(Aws::String &&value)
Definition: FirewallPolicyMetadata.h:66
Aws::NetworkFirewall::Model::FirewallPolicyMetadata::WithArn
FirewallPolicyMetadata & WithArn(const char *value)
Definition: FirewallPolicyMetadata.h:131
NetworkFirewall_EXPORTS.h