AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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