AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PolicyToPath.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/clouddirectory/model/PolicyAttachment.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudDirectory
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CLOUDDIRECTORY_API PolicyToPath() = default;
39 AWS_CLOUDDIRECTORY_API PolicyToPath(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDDIRECTORY_API PolicyToPath& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPath() const { return m_path; }
49 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
50 template<typename PathT = Aws::String>
51 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
52 template<typename PathT = Aws::String>
53 PolicyToPath& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
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) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
64 template<typename PoliciesT = Aws::Vector<PolicyAttachment>>
65 PolicyToPath& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
66 template<typename PoliciesT = PolicyAttachment>
67 PolicyToPath& AddPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies.emplace_back(std::forward<PoliciesT>(value)); return *this; }
69 private:
70
71 Aws::String m_path;
72 bool m_pathHasBeenSet = false;
73
75 bool m_policiesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CloudDirectory
80} // 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