AWS SDK for C++  1.9.123
AWS SDK for C++
Permission.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ElasticTranscoder
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
51  inline const Aws::String& GetGranteeType() const{ return m_granteeType; }
52 
63  inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
64 
75  inline void SetGranteeType(const Aws::String& value) { m_granteeTypeHasBeenSet = true; m_granteeType = value; }
76 
87  inline void SetGranteeType(Aws::String&& value) { m_granteeTypeHasBeenSet = true; m_granteeType = std::move(value); }
88 
99  inline void SetGranteeType(const char* value) { m_granteeTypeHasBeenSet = true; m_granteeType.assign(value); }
100 
111  inline Permission& WithGranteeType(const Aws::String& value) { SetGranteeType(value); return *this;}
112 
123  inline Permission& WithGranteeType(Aws::String&& value) { SetGranteeType(std::move(value)); return *this;}
124 
135  inline Permission& WithGranteeType(const char* value) { SetGranteeType(value); return *this;}
136 
137 
144  inline const Aws::String& GetGrantee() const{ return m_grantee; }
145 
152  inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
153 
160  inline void SetGrantee(const Aws::String& value) { m_granteeHasBeenSet = true; m_grantee = value; }
161 
168  inline void SetGrantee(Aws::String&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
169 
176  inline void SetGrantee(const char* value) { m_granteeHasBeenSet = true; m_grantee.assign(value); }
177 
184  inline Permission& WithGrantee(const Aws::String& value) { SetGrantee(value); return *this;}
185 
192  inline Permission& WithGrantee(Aws::String&& value) { SetGrantee(std::move(value)); return *this;}
193 
200  inline Permission& WithGrantee(const char* value) { SetGrantee(value); return *this;}
201 
202 
215  inline const Aws::Vector<Aws::String>& GetAccess() const{ return m_access; }
216 
229  inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
230 
243  inline void SetAccess(const Aws::Vector<Aws::String>& value) { m_accessHasBeenSet = true; m_access = value; }
244 
257  inline void SetAccess(Aws::Vector<Aws::String>&& value) { m_accessHasBeenSet = true; m_access = std::move(value); }
258 
271  inline Permission& WithAccess(const Aws::Vector<Aws::String>& value) { SetAccess(value); return *this;}
272 
285  inline Permission& WithAccess(Aws::Vector<Aws::String>&& value) { SetAccess(std::move(value)); return *this;}
286 
299  inline Permission& AddAccess(const Aws::String& value) { m_accessHasBeenSet = true; m_access.push_back(value); return *this; }
300 
313  inline Permission& AddAccess(Aws::String&& value) { m_accessHasBeenSet = true; m_access.push_back(std::move(value)); return *this; }
314 
327  inline Permission& AddAccess(const char* value) { m_accessHasBeenSet = true; m_access.push_back(value); return *this; }
328 
329  private:
330 
331  Aws::String m_granteeType;
332  bool m_granteeTypeHasBeenSet;
333 
334  Aws::String m_grantee;
335  bool m_granteeHasBeenSet;
336 
337  Aws::Vector<Aws::String> m_access;
338  bool m_accessHasBeenSet;
339  };
340 
341 } // namespace Model
342 } // namespace ElasticTranscoder
343 } // namespace Aws
Aws::ElasticTranscoder::Model::Permission::Permission
Permission(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticTranscoder::Model::Permission::AccessHasBeenSet
bool AccessHasBeenSet() const
Definition: Permission.h:229
Aws::ElasticTranscoder::Model::Permission::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticTranscoder::Model::Permission::WithAccess
Permission & WithAccess(Aws::Vector< Aws::String > &&value)
Definition: Permission.h:285
Aws::ElasticTranscoder::Model::Permission::WithAccess
Permission & WithAccess(const Aws::Vector< Aws::String > &value)
Definition: Permission.h:271
AWS_ELASTICTRANSCODER_API
#define AWS_ELASTICTRANSCODER_API
Definition: ElasticTranscoder_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticTranscoder::Model::Permission::AddAccess
Permission & AddAccess(const char *value)
Definition: Permission.h:327
AWSVector.h
Aws::ElasticTranscoder::Model::Permission
Definition: Permission.h:33
Aws::ElasticTranscoder::Model::Permission::GranteeHasBeenSet
bool GranteeHasBeenSet() const
Definition: Permission.h:152
Aws::ElasticTranscoder::Model::Permission::WithGranteeType
Permission & WithGranteeType(Aws::String &&value)
Definition: Permission.h:123
Aws::ElasticTranscoder::Model::Permission::SetGrantee
void SetGrantee(const Aws::String &value)
Definition: Permission.h:160
Aws::ElasticTranscoder::Model::Permission::SetAccess
void SetAccess(const Aws::Vector< Aws::String > &value)
Definition: Permission.h:243
Aws::ElasticTranscoder::Model::Permission::AddAccess
Permission & AddAccess(const Aws::String &value)
Definition: Permission.h:299
Aws::ElasticTranscoder::Model::Permission::GranteeTypeHasBeenSet
bool GranteeTypeHasBeenSet() const
Definition: Permission.h:63
Aws::ElasticTranscoder::Model::Permission::GetGranteeType
const Aws::String & GetGranteeType() const
Definition: Permission.h:51
Aws::ElasticTranscoder::Model::Permission::WithGranteeType
Permission & WithGranteeType(const char *value)
Definition: Permission.h:135
Aws::ElasticTranscoder::Model::Permission::WithGrantee
Permission & WithGrantee(Aws::String &&value)
Definition: Permission.h:192
Aws::ElasticTranscoder::Model::Permission::SetGranteeType
void SetGranteeType(const char *value)
Definition: Permission.h:99
Aws::ElasticTranscoder::Model::Permission::WithGrantee
Permission & WithGrantee(const char *value)
Definition: Permission.h:200
Aws::ElasticTranscoder::Model::Permission::SetGrantee
void SetGrantee(Aws::String &&value)
Definition: Permission.h:168
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ElasticTranscoder::Model::Permission::AddAccess
Permission & AddAccess(Aws::String &&value)
Definition: Permission.h:313
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticTranscoder::Model::Permission::SetGranteeType
void SetGranteeType(Aws::String &&value)
Definition: Permission.h:87
Aws::ElasticTranscoder::Model::Permission::WithGranteeType
Permission & WithGranteeType(const Aws::String &value)
Definition: Permission.h:111
Aws::ElasticTranscoder::Model::Permission::Permission
Permission()
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticTranscoder::Model::Permission::GetAccess
const Aws::Vector< Aws::String > & GetAccess() const
Definition: Permission.h:215
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticTranscoder::Model::Permission::GetGrantee
const Aws::String & GetGrantee() const
Definition: Permission.h:144
Aws::ElasticTranscoder::Model::Permission::SetGranteeType
void SetGranteeType(const Aws::String &value)
Definition: Permission.h:75
Aws::ElasticTranscoder::Model::Permission::SetGrantee
void SetGrantee(const char *value)
Definition: Permission.h:176
Aws::ElasticTranscoder::Model::Permission::WithGrantee
Permission & WithGrantee(const Aws::String &value)
Definition: Permission.h:184
ElasticTranscoder_EXPORTS.h
Aws::ElasticTranscoder::Model::Permission::SetAccess
void SetAccess(Aws::Vector< Aws::String > &&value)
Definition: Permission.h:257
Aws::ElasticTranscoder::Model::Permission::operator=
Permission & operator=(Aws::Utils::Json::JsonView jsonValue)