AWS SDK for C++  0.12.9
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 
36  {
37  public:
38  ImageFailure();
39  ImageFailure(const Aws::Utils::Json::JsonValue& jsonValue);
40  ImageFailure& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
46  inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
47 
51  inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
52 
56  inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
57 
61  inline ImageFailure& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
62 
66  inline ImageFailure& WithImageId(ImageIdentifier&& value) { SetImageId(value); return *this;}
67 
71  inline const ImageFailureCode& GetFailureCode() const{ return m_failureCode; }
72 
76  inline void SetFailureCode(const ImageFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
77 
81  inline void SetFailureCode(ImageFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
82 
86  inline ImageFailure& WithFailureCode(const ImageFailureCode& value) { SetFailureCode(value); return *this;}
87 
91  inline ImageFailure& WithFailureCode(ImageFailureCode&& value) { SetFailureCode(value); return *this;}
92 
96  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
97 
101  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
102 
106  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
107 
111  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
112 
116  inline ImageFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
117 
121  inline ImageFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(value); return *this;}
122 
126  inline ImageFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
127 
128  private:
129  ImageIdentifier m_imageId;
130  bool m_imageIdHasBeenSet;
131  ImageFailureCode m_failureCode;
132  bool m_failureCodeHasBeenSet;
133  Aws::String m_failureReason;
134  bool m_failureReasonHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace ECR
139 } // namespace Aws
ImageFailure & WithImageId(const ImageIdentifier &value)
Definition: ImageFailure.h:61
void SetFailureCode(const ImageFailureCode &value)
Definition: ImageFailure.h:76
ImageFailure & WithFailureReason(const Aws::String &value)
Definition: ImageFailure.h:116
const ImageFailureCode & GetFailureCode() const
Definition: ImageFailure.h:71
ImageFailure & WithImageId(ImageIdentifier &&value)
Definition: ImageFailure.h:66
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
const Aws::String & GetFailureReason() const
Definition: ImageFailure.h:96
const ImageIdentifier & GetImageId() const
Definition: ImageFailure.h:46
void SetFailureReason(const char *value)
Definition: ImageFailure.h:111
ImageFailure & WithFailureCode(ImageFailureCode &&value)
Definition: ImageFailure.h:91
void SetFailureCode(ImageFailureCode &&value)
Definition: ImageFailure.h:81
ImageFailure & WithFailureReason(const char *value)
Definition: ImageFailure.h:126
ImageFailure & WithFailureReason(Aws::String &&value)
Definition: ImageFailure.h:121
void SetFailureReason(const Aws::String &value)
Definition: ImageFailure.h:101
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetImageId(ImageIdentifier &&value)
Definition: ImageFailure.h:56
void SetFailureReason(Aws::String &&value)
Definition: ImageFailure.h:106
void SetImageId(const ImageIdentifier &value)
Definition: ImageFailure.h:51
JSON (JavaScript Object Notation).
ImageFailure & WithFailureCode(const ImageFailureCode &value)
Definition: ImageFailure.h:86