AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
51 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
52 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
53 inline PolicyToPath& WithPath(const Aws::String& value) { SetPath(value); return *this;}
54 inline PolicyToPath& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
55 inline PolicyToPath& WithPath(const char* value) { SetPath(value); return *this;}
57
59
62 inline const Aws::Vector<PolicyAttachment>& GetPolicies() const{ return m_policies; }
63 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
64 inline void SetPolicies(const Aws::Vector<PolicyAttachment>& value) { m_policiesHasBeenSet = true; m_policies = value; }
65 inline void SetPolicies(Aws::Vector<PolicyAttachment>&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); }
66 inline PolicyToPath& WithPolicies(const Aws::Vector<PolicyAttachment>& value) { SetPolicies(value); return *this;}
67 inline PolicyToPath& WithPolicies(Aws::Vector<PolicyAttachment>&& value) { SetPolicies(std::move(value)); return *this;}
68 inline PolicyToPath& AddPolicies(const PolicyAttachment& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; }
69 inline PolicyToPath& AddPolicies(PolicyAttachment&& value) { m_policiesHasBeenSet = true; m_policies.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_path;
74 bool m_pathHasBeenSet = false;
75
77 bool m_policiesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CloudDirectory
82} // namespace Aws
PolicyToPath & WithPath(const Aws::String &value)
const Aws::String & GetPath() const
PolicyToPath & WithPath(const char *value)
PolicyToPath & WithPolicies(Aws::Vector< PolicyAttachment > &&value)
const Aws::Vector< PolicyAttachment > & GetPolicies() const
PolicyToPath & AddPolicies(PolicyAttachment &&value)
AWS_CLOUDDIRECTORY_API PolicyToPath()
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)
PolicyToPath & AddPolicies(const PolicyAttachment &value)
void SetPath(Aws::String &&value)
PolicyToPath & WithPath(Aws::String &&value)
void SetPath(const Aws::String &value)
void SetPolicies(Aws::Vector< PolicyAttachment > &&value)
PolicyToPath & WithPolicies(const Aws::Vector< PolicyAttachment > &value)
void SetPolicies(const Aws::Vector< PolicyAttachment > &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