AWS SDK for C++  0.14.3
AWS SDK for C++
ImageFailure.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
16 #include <aws/ecr/ECR_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ECR
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  ImageFailure();
42  ImageFailure(const Aws::Utils::Json::JsonValue& jsonValue);
43  ImageFailure& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
50 
54  inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
55 
59  inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
60 
64  inline ImageFailure& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
65 
69  inline ImageFailure& WithImageId(ImageIdentifier&& value) { SetImageId(value); return *this;}
70 
74  inline const ImageFailureCode& GetFailureCode() const{ return m_failureCode; }
75 
79  inline void SetFailureCode(const ImageFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
80 
84  inline void SetFailureCode(ImageFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
85 
89  inline ImageFailure& WithFailureCode(const ImageFailureCode& value) { SetFailureCode(value); return *this;}
90 
94  inline ImageFailure& WithFailureCode(ImageFailureCode&& value) { SetFailureCode(value); return *this;}
95 
99  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
100 
104  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
105 
109  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
110 
114  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
115 
119  inline ImageFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
120 
124  inline ImageFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(value); return *this;}
125 
129  inline ImageFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
130 
131  private:
132  ImageIdentifier m_imageId;
133  bool m_imageIdHasBeenSet;
134  ImageFailureCode m_failureCode;
135  bool m_failureCodeHasBeenSet;
136  Aws::String m_failureReason;
137  bool m_failureReasonHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace ECR
142 } // namespace Aws
ImageFailure & WithImageId(const ImageIdentifier &value)
Definition: ImageFailure.h:64
void SetFailureCode(const ImageFailureCode &value)
Definition: ImageFailure.h:79
ImageFailure & WithFailureReason(const Aws::String &value)
Definition: ImageFailure.h:119
const ImageFailureCode & GetFailureCode() const
Definition: ImageFailure.h:74
ImageFailure & WithImageId(ImageIdentifier &&value)
Definition: ImageFailure.h:69
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:37
const Aws::String & GetFailureReason() const
Definition: ImageFailure.h:99
const ImageIdentifier & GetImageId() const
Definition: ImageFailure.h:49
void SetFailureReason(const char *value)
Definition: ImageFailure.h:114
ImageFailure & WithFailureCode(ImageFailureCode &&value)
Definition: ImageFailure.h:94
void SetFailureCode(ImageFailureCode &&value)
Definition: ImageFailure.h:84
ImageFailure & WithFailureReason(const char *value)
Definition: ImageFailure.h:129
ImageFailure & WithFailureReason(Aws::String &&value)
Definition: ImageFailure.h:124
void SetFailureReason(const Aws::String &value)
Definition: ImageFailure.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetImageId(ImageIdentifier &&value)
Definition: ImageFailure.h:59
void SetFailureReason(Aws::String &&value)
Definition: ImageFailure.h:109
void SetImageId(const ImageIdentifier &value)
Definition: ImageFailure.h:54
JSON (JavaScript Object Notation).
ImageFailure & WithFailureCode(const ImageFailureCode &value)
Definition: ImageFailure.h:89