AWS SDK for C++  0.12.9
AWS SDK for C++
WorkspaceBundle.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace WorkSpaces
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  WorkspaceBundle& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
50 
54  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
55 
59  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
60 
64  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
65 
69  inline WorkspaceBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
70 
74  inline WorkspaceBundle& WithBundleId(Aws::String&& value) { SetBundleId(value); return *this;}
75 
79  inline WorkspaceBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
80 
84  inline const Aws::String& GetName() const{ return m_name; }
85 
89  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 
94  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
100 
104  inline WorkspaceBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
105 
109  inline WorkspaceBundle& WithName(Aws::String&& value) { SetName(value); return *this;}
110 
114  inline WorkspaceBundle& WithName(const char* value) { SetName(value); return *this;}
115 
120  inline const Aws::String& GetOwner() const{ return m_owner; }
121 
126  inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
127 
132  inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = value; }
133 
138  inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
139 
144  inline WorkspaceBundle& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
145 
150  inline WorkspaceBundle& WithOwner(Aws::String&& value) { SetOwner(value); return *this;}
151 
156  inline WorkspaceBundle& WithOwner(const char* value) { SetOwner(value); return *this;}
157 
161  inline const Aws::String& GetDescription() const{ return m_description; }
162 
166  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
167 
171  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
172 
176  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
177 
181  inline WorkspaceBundle& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
182 
186  inline WorkspaceBundle& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
187 
191  inline WorkspaceBundle& WithDescription(const char* value) { SetDescription(value); return *this;}
192 
197  inline const UserStorage& GetUserStorage() const{ return m_userStorage; }
198 
203  inline void SetUserStorage(const UserStorage& value) { m_userStorageHasBeenSet = true; m_userStorage = value; }
204 
209  inline void SetUserStorage(UserStorage&& value) { m_userStorageHasBeenSet = true; m_userStorage = value; }
210 
215  inline WorkspaceBundle& WithUserStorage(const UserStorage& value) { SetUserStorage(value); return *this;}
216 
221  inline WorkspaceBundle& WithUserStorage(UserStorage&& value) { SetUserStorage(value); return *this;}
222 
227  inline const ComputeType& GetComputeType() const{ return m_computeType; }
228 
233  inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
234 
239  inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
240 
245  inline WorkspaceBundle& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
246 
251  inline WorkspaceBundle& WithComputeType(ComputeType&& value) { SetComputeType(value); return *this;}
252 
253  private:
254  Aws::String m_bundleId;
255  bool m_bundleIdHasBeenSet;
256  Aws::String m_name;
257  bool m_nameHasBeenSet;
258  Aws::String m_owner;
259  bool m_ownerHasBeenSet;
260  Aws::String m_description;
261  bool m_descriptionHasBeenSet;
262  UserStorage m_userStorage;
263  bool m_userStorageHasBeenSet;
264  ComputeType m_computeType;
265  bool m_computeTypeHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace WorkSpaces
270 } // namespace Aws
void SetUserStorage(UserStorage &&value)
const ComputeType & GetComputeType() const
void SetComputeType(ComputeType &&value)
WorkspaceBundle & WithOwner(const Aws::String &value)
const Aws::String & GetDescription() const
WorkspaceBundle & WithName(Aws::String &&value)
WorkspaceBundle & WithOwner(Aws::String &&value)
WorkspaceBundle & WithBundleId(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetBundleId(const Aws::String &value)
void SetUserStorage(const UserStorage &value)
void SetOwner(const Aws::String &value)
WorkspaceBundle & WithBundleId(const char *value)
const Aws::String & GetOwner() const
void SetBundleId(Aws::String &&value)
WorkspaceBundle & WithBundleId(Aws::String &&value)
WorkspaceBundle & WithName(const Aws::String &value)
WorkspaceBundle & WithUserStorage(UserStorage &&value)
WorkspaceBundle & WithComputeType(ComputeType &&value)
WorkspaceBundle & WithUserStorage(const UserStorage &value)
const Aws::String & GetName() const
WorkspaceBundle & WithComputeType(const ComputeType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
WorkspaceBundle & WithDescription(Aws::String &&value)
void SetName(const Aws::String &value)
WorkspaceBundle & WithDescription(const Aws::String &value)
const Aws::String & GetBundleId() const
WorkspaceBundle & WithOwner(const char *value)
WorkspaceBundle & WithDescription(const char *value)
void SetComputeType(const ComputeType &value)
const UserStorage & GetUserStorage() const
void SetDescription(const Aws::String &value)
JSON (JavaScript Object Notation).
WorkspaceBundle & WithName(const char *value)
#define AWS_WORKSPACES_API