AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
PolicyToPath.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/PolicyAttachment.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudDirectory {
22namespace Model {
23
32 public:
33 AWS_CLOUDDIRECTORY_API PolicyToPath() = default;
34 AWS_CLOUDDIRECTORY_API PolicyToPath(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDDIRECTORY_API PolicyToPath& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPath() const { return m_path; }
43 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
44 template <typename PathT = Aws::String>
45 void SetPath(PathT&& value) {
46 m_pathHasBeenSet = true;
47 m_path = std::forward<PathT>(value);
48 }
49 template <typename PathT = Aws::String>
50 PolicyToPath& WithPath(PathT&& value) {
51 SetPath(std::forward<PathT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<PolicyAttachment>& GetPolicies() const { return m_policies; }
61 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
62 template <typename PoliciesT = Aws::Vector<PolicyAttachment>>
63 void SetPolicies(PoliciesT&& value) {
64 m_policiesHasBeenSet = true;
65 m_policies = std::forward<PoliciesT>(value);
66 }
67 template <typename PoliciesT = Aws::Vector<PolicyAttachment>>
68 PolicyToPath& WithPolicies(PoliciesT&& value) {
69 SetPolicies(std::forward<PoliciesT>(value));
70 return *this;
71 }
72 template <typename PoliciesT = PolicyAttachment>
73 PolicyToPath& AddPolicies(PoliciesT&& value) {
74 m_policiesHasBeenSet = true;
75 m_policies.emplace_back(std::forward<PoliciesT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_path;
81
83 bool m_pathHasBeenSet = false;
84 bool m_policiesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CloudDirectory
89} // namespace Aws
const Aws::String & GetPath() const
const Aws::Vector< PolicyAttachment > & GetPolicies() const
PolicyToPath & WithPolicies(PoliciesT &&value)
PolicyToPath & AddPolicies(PoliciesT &&value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDDIRECTORY_API PolicyToPath(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API PolicyToPath & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API PolicyToPath()=default
PolicyToPath & WithPath(PathT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue