AWS SDK for C++  0.14.3
AWS SDK for C++
JobListEntry.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 Snowball
30 {
31 namespace Model
32 {
33 
40  {
41  public:
42  JobListEntry();
43  JobListEntry(const Aws::Utils::Json::JsonValue& jsonValue);
44  JobListEntry& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::String& GetJobId() const{ return m_jobId; }
52 
57  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
58 
63  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
64 
69  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
70 
75  inline JobListEntry& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
76 
81  inline JobListEntry& WithJobId(Aws::String&& value) { SetJobId(value); return *this;}
82 
87  inline JobListEntry& WithJobId(const char* value) { SetJobId(value); return *this;}
88 
92  inline const JobState& GetJobState() const{ return m_jobState; }
93 
97  inline void SetJobState(const JobState& value) { m_jobStateHasBeenSet = true; m_jobState = value; }
98 
102  inline void SetJobState(JobState&& value) { m_jobStateHasBeenSet = true; m_jobState = value; }
103 
107  inline JobListEntry& WithJobState(const JobState& value) { SetJobState(value); return *this;}
108 
112  inline JobListEntry& WithJobState(JobState&& value) { SetJobState(value); return *this;}
113 
122  inline bool GetIsMaster() const{ return m_isMaster; }
123 
132  inline void SetIsMaster(bool value) { m_isMasterHasBeenSet = true; m_isMaster = value; }
133 
142  inline JobListEntry& WithIsMaster(bool value) { SetIsMaster(value); return *this;}
143 
144  private:
145  Aws::String m_jobId;
146  bool m_jobIdHasBeenSet;
147  JobState m_jobState;
148  bool m_jobStateHasBeenSet;
149  bool m_isMaster;
150  bool m_isMasterHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace Snowball
155 } // namespace Aws
JobListEntry & WithJobState(const JobState &value)
Definition: JobListEntry.h:107
const Aws::String & GetJobId() const
Definition: JobListEntry.h:51
Definition: JobListEntry.h:39
void SetJobState(const JobState &value)
Definition: JobListEntry.h:97
bool GetIsMaster() const
Definition: JobListEntry.h:122
JobListEntry & WithJobState(JobState &&value)
Definition: JobListEntry.h:112
JobListEntry & WithJobId(const Aws::String &value)
Definition: JobListEntry.h:75
const JobState & GetJobState() const
Definition: JobListEntry.h:92
JobListEntry & WithIsMaster(bool value)
Definition: JobListEntry.h:142
#define AWS_SNOWBALL_API
void SetJobId(Aws::String &&value)
Definition: JobListEntry.h:63
void SetIsMaster(bool value)
Definition: JobListEntry.h:132
JobListEntry & WithJobId(Aws::String &&value)
Definition: JobListEntry.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetJobState(JobState &&value)
Definition: JobListEntry.h:102
void SetJobId(const char *value)
Definition: JobListEntry.h:69
void SetJobId(const Aws::String &value)
Definition: JobListEntry.h:57
JSON (JavaScript Object Notation).
JobListEntry & WithJobId(const char *value)
Definition: JobListEntry.h:87