AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGranteeType(const Aws::String& value) { m_granteeTypeHasBeenSet = true; m_granteeType = value; }
55 inline void SetGranteeType(Aws::String&& value) { m_granteeTypeHasBeenSet = true; m_granteeType = std::move(value); }
56 inline void SetGranteeType(const char* value) { m_granteeTypeHasBeenSet = true; m_granteeType.assign(value); }
57 inline Permission& WithGranteeType(const Aws::String& value) { SetGranteeType(value); return *this;}
58 inline Permission& WithGranteeType(Aws::String&& value) { SetGranteeType(std::move(value)); return *this;}
59 inline Permission& WithGranteeType(const char* value) { SetGranteeType(value); return *this;}
61
63
69 inline const Aws::String& GetGrantee() const{ return m_grantee; }
70 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
71 inline void SetGrantee(const Aws::String& value) { m_granteeHasBeenSet = true; m_grantee = value; }
72 inline void SetGrantee(Aws::String&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
73 inline void SetGrantee(const char* value) { m_granteeHasBeenSet = true; m_grantee.assign(value); }
74 inline Permission& WithGrantee(const Aws::String& value) { SetGrantee(value); return *this;}
75 inline Permission& WithGrantee(Aws::String&& value) { SetGrantee(std::move(value)); return *this;}
76 inline Permission& WithGrantee(const char* value) { SetGrantee(value); return *this;}
78
80
92 inline const Aws::Vector<Aws::String>& GetAccess() const{ return m_access; }
93 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
94 inline void SetAccess(const Aws::Vector<Aws::String>& value) { m_accessHasBeenSet = true; m_access = value; }
95 inline void SetAccess(Aws::Vector<Aws::String>&& value) { m_accessHasBeenSet = true; m_access = std::move(value); }
96 inline Permission& WithAccess(const Aws::Vector<Aws::String>& value) { SetAccess(value); return *this;}
97 inline Permission& WithAccess(Aws::Vector<Aws::String>&& value) { SetAccess(std::move(value)); return *this;}
98 inline Permission& AddAccess(const Aws::String& value) { m_accessHasBeenSet = true; m_access.push_back(value); return *this; }
99 inline Permission& AddAccess(Aws::String&& value) { m_accessHasBeenSet = true; m_access.push_back(std::move(value)); return *this; }
100 inline Permission& AddAccess(const char* value) { m_accessHasBeenSet = true; m_access.push_back(value); return *this; }
102 private:
103
104 Aws::String m_granteeType;
105 bool m_granteeTypeHasBeenSet = false;
106
107 Aws::String m_grantee;
108 bool m_granteeHasBeenSet = false;
109
111 bool m_accessHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ElasticTranscoder
116} // namespace Aws
void SetGranteeType(Aws::String &&value)
Definition Permission.h:55
Permission & AddAccess(const Aws::String &value)
Definition Permission.h:98
Permission & WithGrantee(const Aws::String &value)
Definition Permission.h:74
Permission & WithAccess(const Aws::Vector< Aws::String > &value)
Definition Permission.h:96
Permission & AddAccess(const char *value)
Definition Permission.h:100
AWS_ELASTICTRANSCODER_API Permission()
Permission & WithGranteeType(const char *value)
Definition Permission.h:59
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
Permission & WithAccess(Aws::Vector< Aws::String > &&value)
Definition Permission.h:97
void SetAccess(const Aws::Vector< Aws::String > &value)
Definition Permission.h:94
void SetGrantee(Aws::String &&value)
Definition Permission.h:72
Permission & WithGrantee(Aws::String &&value)
Definition Permission.h:75
void SetAccess(Aws::Vector< Aws::String > &&value)
Definition Permission.h:95
Permission & WithGranteeType(const Aws::String &value)
Definition Permission.h:57
const Aws::String & GetGrantee() const
Definition Permission.h:69
void SetGrantee(const Aws::String &value)
Definition Permission.h:71
const Aws::Vector< Aws::String > & GetAccess() const
Definition Permission.h:92
AWS_ELASTICTRANSCODER_API Permission(Aws::Utils::Json::JsonView jsonValue)
Permission & AddAccess(Aws::String &&value)
Definition Permission.h:99
AWS_ELASTICTRANSCODER_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
Permission & WithGrantee(const char *value)
Definition Permission.h:76
void SetGranteeType(const char *value)
Definition Permission.h:56
const Aws::String & GetGranteeType() const
Definition Permission.h:52
void SetGranteeType(const Aws::String &value)
Definition Permission.h:54
Permission & WithGranteeType(Aws::String &&value)
Definition Permission.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue