AWS SDK for C++  0.12.9
AWS SDK for C++
PutJobFailureResultRequest.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 CodePipeline
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetJobId() const{ return m_jobId; }
44 
49  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
50 
55  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
56 
61  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
62 
67  inline PutJobFailureResultRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
68 
73  inline PutJobFailureResultRequest& WithJobId(Aws::String&& value) { SetJobId(value); return *this;}
74 
79  inline PutJobFailureResultRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
80 
84  inline const FailureDetails& GetFailureDetails() const{ return m_failureDetails; }
85 
89  inline void SetFailureDetails(const FailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
90 
94  inline void SetFailureDetails(FailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
95 
99  inline PutJobFailureResultRequest& WithFailureDetails(const FailureDetails& value) { SetFailureDetails(value); return *this;}
100 
104  inline PutJobFailureResultRequest& WithFailureDetails(FailureDetails&& value) { SetFailureDetails(value); return *this;}
105 
106  private:
107  Aws::String m_jobId;
108  bool m_jobIdHasBeenSet;
109  FailureDetails m_failureDetails;
110  bool m_failureDetailsHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace CodePipeline
115 } // namespace Aws
PutJobFailureResultRequest & WithJobId(const char *value)
PutJobFailureResultRequest & WithFailureDetails(const FailureDetails &value)
PutJobFailureResultRequest & WithJobId(Aws::String &&value)
PutJobFailureResultRequest & WithJobId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PutJobFailureResultRequest & WithFailureDetails(FailureDetails &&value)
#define AWS_CODEPIPELINE_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).