AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AssociatedPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkSecurityManager {
20namespace Model {
21
30 public:
31 AWS_NETWORKSECURITYMANAGER_API AssociatedPolicy() = default;
32 AWS_NETWORKSECURITYMANAGER_API AssociatedPolicy(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKSECURITYMANAGER_API AssociatedPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
43 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
44 template <typename PolicyArnT = Aws::String>
45 void SetPolicyArn(PolicyArnT&& value) {
46 m_policyArnHasBeenSet = true;
47 m_policyArn = std::forward<PolicyArnT>(value);
48 }
49 template <typename PolicyArnT = Aws::String>
50 AssociatedPolicy& WithPolicyArn(PolicyArnT&& value) {
51 SetPolicyArn(std::forward<PolicyArnT>(value));
52 return *this;
53 }
55 private:
56 Aws::String m_policyArn;
57 bool m_policyArnHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace NetworkSecurityManager
62} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API AssociatedPolicy()=default
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKSECURITYMANAGER_API AssociatedPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociatedPolicy & WithPolicyArn(PolicyArnT &&value)
AWS_NETWORKSECURITYMANAGER_API AssociatedPolicy(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue