AWS SDK for C++  0.12.9
AWS SDK for C++
Project.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DeviceFarm
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  Project();
42  Project(const Aws::Utils::Json::JsonValue& jsonValue);
43  Project& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetArn() const{ return m_arn; }
50 
54  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 
59  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
60 
64  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
69  inline Project& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 
74  inline Project& WithArn(Aws::String&& value) { SetArn(value); return *this;}
75 
79  inline Project& WithArn(const char* value) { SetArn(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 Project& WithName(const Aws::String& value) { SetName(value); return *this;}
105 
109  inline Project& WithName(Aws::String&& value) { SetName(value); return *this;}
110 
114  inline Project& WithName(const char* value) { SetName(value); return *this;}
115 
119  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
120 
124  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
125 
129  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = value; }
130 
134  inline Project& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
135 
139  inline Project& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
140 
141  private:
142  Aws::String m_arn;
143  bool m_arnHasBeenSet;
144  Aws::String m_name;
145  bool m_nameHasBeenSet;
146  Aws::Utils::DateTime m_created;
147  bool m_createdHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace DeviceFarm
152 } // namespace Aws
#define AWS_DEVICEFARM_API
void SetName(Aws::String &&value)
Definition: Project.h:94
Project & WithArn(Aws::String &&value)
Definition: Project.h:74
Project & WithName(Aws::String &&value)
Definition: Project.h:109
void SetName(const char *value)
Definition: Project.h:99
const Aws::String & GetName() const
Definition: Project.h:84
Project & WithName(const Aws::String &value)
Definition: Project.h:104
void SetCreated(const Aws::Utils::DateTime &value)
Definition: Project.h:124
Project & WithCreated(Aws::Utils::DateTime &&value)
Definition: Project.h:139
Project & WithCreated(const Aws::Utils::DateTime &value)
Definition: Project.h:134
void SetCreated(Aws::Utils::DateTime &&value)
Definition: Project.h:129
Project & WithName(const char *value)
Definition: Project.h:114
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetArn() const
Definition: Project.h:49
void SetArn(Aws::String &&value)
Definition: Project.h:59
void SetArn(const char *value)
Definition: Project.h:64
void SetArn(const Aws::String &value)
Definition: Project.h:54
void SetName(const Aws::String &value)
Definition: Project.h:89
const Aws::Utils::DateTime & GetCreated() const
Definition: Project.h:119
Project & WithArn(const Aws::String &value)
Definition: Project.h:69
Project & WithArn(const char *value)
Definition: Project.h:79
JSON (JavaScript Object Notation).