AWS SDK for C++  0.14.3
AWS SDK for C++
Permission.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Permission();
40  Permission(const Aws::Utils::Json::JsonValue& jsonValue);
41  Permission& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetStackId() const{ return m_stackId; }
48 
52  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
53 
57  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
58 
62  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
63 
67  inline Permission& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
68 
72  inline Permission& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
73 
77  inline Permission& WithStackId(const char* value) { SetStackId(value); return *this;}
78 
85  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
86 
93  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
94 
101  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
102 
109  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
110 
117  inline Permission& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
118 
125  inline Permission& WithIamUserArn(Aws::String&& value) { SetIamUserArn(value); return *this;}
126 
133  inline Permission& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
134 
138  inline bool GetAllowSsh() const{ return m_allowSsh; }
139 
143  inline void SetAllowSsh(bool value) { m_allowSshHasBeenSet = true; m_allowSsh = value; }
144 
148  inline Permission& WithAllowSsh(bool value) { SetAllowSsh(value); return *this;}
149 
153  inline bool GetAllowSudo() const{ return m_allowSudo; }
154 
158  inline void SetAllowSudo(bool value) { m_allowSudoHasBeenSet = true; m_allowSudo = value; }
159 
163  inline Permission& WithAllowSudo(bool value) { SetAllowSudo(value); return *this;}
164 
174  inline const Aws::String& GetLevel() const{ return m_level; }
175 
185  inline void SetLevel(const Aws::String& value) { m_levelHasBeenSet = true; m_level = value; }
186 
196  inline void SetLevel(Aws::String&& value) { m_levelHasBeenSet = true; m_level = value; }
197 
207  inline void SetLevel(const char* value) { m_levelHasBeenSet = true; m_level.assign(value); }
208 
218  inline Permission& WithLevel(const Aws::String& value) { SetLevel(value); return *this;}
219 
229  inline Permission& WithLevel(Aws::String&& value) { SetLevel(value); return *this;}
230 
240  inline Permission& WithLevel(const char* value) { SetLevel(value); return *this;}
241 
242  private:
243  Aws::String m_stackId;
244  bool m_stackIdHasBeenSet;
245  Aws::String m_iamUserArn;
246  bool m_iamUserArnHasBeenSet;
247  bool m_allowSsh;
248  bool m_allowSshHasBeenSet;
249  bool m_allowSudo;
250  bool m_allowSudoHasBeenSet;
251  Aws::String m_level;
252  bool m_levelHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace OpsWorks
257 } // namespace Aws
void SetLevel(const Aws::String &value)
Definition: Permission.h:185
Permission & WithLevel(const char *value)
Definition: Permission.h:240
Permission & WithLevel(Aws::String &&value)
Definition: Permission.h:229
const Aws::String & GetIamUserArn() const
Definition: Permission.h:85
Permission & WithIamUserArn(const char *value)
Definition: Permission.h:133
Permission & WithStackId(const char *value)
Definition: Permission.h:77
void SetIamUserArn(Aws::String &&value)
Definition: Permission.h:101
Permission & WithStackId(Aws::String &&value)
Definition: Permission.h:72
const Aws::String & GetLevel() const
Definition: Permission.h:174
void SetLevel(Aws::String &&value)
Definition: Permission.h:196
Permission & WithAllowSudo(bool value)
Definition: Permission.h:163
void SetStackId(const char *value)
Definition: Permission.h:62
void SetLevel(const char *value)
Definition: Permission.h:207
Permission & WithStackId(const Aws::String &value)
Definition: Permission.h:67
Permission & WithAllowSsh(bool value)
Definition: Permission.h:148
void SetStackId(const Aws::String &value)
Definition: Permission.h:52
Permission & WithIamUserArn(Aws::String &&value)
Definition: Permission.h:125
const Aws::String & GetStackId() const
Definition: Permission.h:47
void SetIamUserArn(const Aws::String &value)
Definition: Permission.h:93
void SetIamUserArn(const char *value)
Definition: Permission.h:109
void SetStackId(Aws::String &&value)
Definition: Permission.h:57
Permission & WithIamUserArn(const Aws::String &value)
Definition: Permission.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
JSON (JavaScript Object Notation).
Permission & WithLevel(const Aws::String &value)
Definition: Permission.h:218