AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Permission.h
1
6#pragma once
7#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ElasticTranscoder
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ELASTICTRANSCODER_API Permission() = default;
36 AWS_ELASTICTRANSCODER_API Permission(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICTRANSCODER_API Permission& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
52 inline const Aws::String& GetGranteeType() const { return m_granteeType; }
53 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
54 template<typename GranteeTypeT = Aws::String>
55 void SetGranteeType(GranteeTypeT&& value) { m_granteeTypeHasBeenSet = true; m_granteeType = std::forward<GranteeTypeT>(value); }
56 template<typename GranteeTypeT = Aws::String>
57 Permission& WithGranteeType(GranteeTypeT&& value) { SetGranteeType(std::forward<GranteeTypeT>(value)); return *this;}
59
61
67 inline const Aws::String& GetGrantee() const { return m_grantee; }
68 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
69 template<typename GranteeT = Aws::String>
70 void SetGrantee(GranteeT&& value) { m_granteeHasBeenSet = true; m_grantee = std::forward<GranteeT>(value); }
71 template<typename GranteeT = Aws::String>
72 Permission& WithGrantee(GranteeT&& value) { SetGrantee(std::forward<GranteeT>(value)); return *this;}
74
76
88 inline const Aws::Vector<Aws::String>& GetAccess() const { return m_access; }
89 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
90 template<typename AccessT = Aws::Vector<Aws::String>>
91 void SetAccess(AccessT&& value) { m_accessHasBeenSet = true; m_access = std::forward<AccessT>(value); }
92 template<typename AccessT = Aws::Vector<Aws::String>>
93 Permission& WithAccess(AccessT&& value) { SetAccess(std::forward<AccessT>(value)); return *this;}
94 template<typename AccessT = Aws::String>
95 Permission& AddAccess(AccessT&& value) { m_accessHasBeenSet = true; m_access.emplace_back(std::forward<AccessT>(value)); return *this; }
97 private:
98
99 Aws::String m_granteeType;
100 bool m_granteeTypeHasBeenSet = false;
101
102 Aws::String m_grantee;
103 bool m_granteeHasBeenSet = false;
104
106 bool m_accessHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ElasticTranscoder
111} // namespace Aws
Permission & WithAccess(AccessT &&value)
Definition Permission.h:93
Permission & AddAccess(AccessT &&value)
Definition Permission.h:95
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGranteeType(GranteeTypeT &&value)
Definition Permission.h:55
Permission & WithGrantee(GranteeT &&value)
Definition Permission.h:72
const Aws::String & GetGrantee() const
Definition Permission.h:67
const Aws::Vector< Aws::String > & GetAccess() const
Definition Permission.h:88
AWS_ELASTICTRANSCODER_API Permission(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICTRANSCODER_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICTRANSCODER_API Permission()=default
const Aws::String & GetGranteeType() const
Definition Permission.h:52
Permission & WithGranteeType(GranteeTypeT &&value)
Definition Permission.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue