AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyAttachment.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudDirectory
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_CLOUDDIRECTORY_API PolicyAttachment();
39 AWS_CLOUDDIRECTORY_API PolicyAttachment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDDIRECTORY_API PolicyAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
49 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
50 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
51 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
52 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
53 inline PolicyAttachment& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
54 inline PolicyAttachment& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
55 inline PolicyAttachment& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
57
59
63 inline const Aws::String& GetObjectIdentifier() const{ return m_objectIdentifier; }
64 inline bool ObjectIdentifierHasBeenSet() const { return m_objectIdentifierHasBeenSet; }
65 inline void SetObjectIdentifier(const Aws::String& value) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier = value; }
66 inline void SetObjectIdentifier(Aws::String&& value) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier = std::move(value); }
67 inline void SetObjectIdentifier(const char* value) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier.assign(value); }
68 inline PolicyAttachment& WithObjectIdentifier(const Aws::String& value) { SetObjectIdentifier(value); return *this;}
69 inline PolicyAttachment& WithObjectIdentifier(Aws::String&& value) { SetObjectIdentifier(std::move(value)); return *this;}
70 inline PolicyAttachment& WithObjectIdentifier(const char* value) { SetObjectIdentifier(value); return *this;}
72
74
78 inline const Aws::String& GetPolicyType() const{ return m_policyType; }
79 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
80 inline void SetPolicyType(const Aws::String& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
81 inline void SetPolicyType(Aws::String&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
82 inline void SetPolicyType(const char* value) { m_policyTypeHasBeenSet = true; m_policyType.assign(value); }
83 inline PolicyAttachment& WithPolicyType(const Aws::String& value) { SetPolicyType(value); return *this;}
84 inline PolicyAttachment& WithPolicyType(Aws::String&& value) { SetPolicyType(std::move(value)); return *this;}
85 inline PolicyAttachment& WithPolicyType(const char* value) { SetPolicyType(value); return *this;}
87 private:
88
89 Aws::String m_policyId;
90 bool m_policyIdHasBeenSet = false;
91
92 Aws::String m_objectIdentifier;
93 bool m_objectIdentifierHasBeenSet = false;
94
95 Aws::String m_policyType;
96 bool m_policyTypeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CloudDirectory
101} // namespace Aws
PolicyAttachment & WithPolicyId(Aws::String &&value)
PolicyAttachment & WithObjectIdentifier(const char *value)
PolicyAttachment & WithPolicyType(const Aws::String &value)
void SetPolicyId(const Aws::String &value)
void SetPolicyType(const Aws::String &value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDDIRECTORY_API PolicyAttachment(Aws::Utils::Json::JsonView jsonValue)
PolicyAttachment & WithObjectIdentifier(const Aws::String &value)
PolicyAttachment & WithPolicyId(const Aws::String &value)
PolicyAttachment & WithPolicyType(const char *value)
AWS_CLOUDDIRECTORY_API PolicyAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetObjectIdentifier() const
PolicyAttachment & WithPolicyType(Aws::String &&value)
void SetObjectIdentifier(const Aws::String &value)
PolicyAttachment & WithPolicyId(const char *value)
PolicyAttachment & WithObjectIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue