AWS SDK for C++  0.12.9
AWS SDK for C++
ArtifactLocation.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 CodePipeline
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  ArtifactLocation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const ArtifactLocationType& GetType() const{ return m_type; }
49 
53  inline void SetType(const ArtifactLocationType& value) { m_typeHasBeenSet = true; m_type = value; }
54 
58  inline void SetType(ArtifactLocationType&& value) { m_typeHasBeenSet = true; m_type = value; }
59 
63  inline ArtifactLocation& WithType(const ArtifactLocationType& value) { SetType(value); return *this;}
64 
68  inline ArtifactLocation& WithType(ArtifactLocationType&& value) { SetType(value); return *this;}
69 
73  inline const S3ArtifactLocation& GetS3Location() const{ return m_s3Location; }
74 
78  inline void SetS3Location(const S3ArtifactLocation& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
79 
83  inline void SetS3Location(S3ArtifactLocation&& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
84 
88  inline ArtifactLocation& WithS3Location(const S3ArtifactLocation& value) { SetS3Location(value); return *this;}
89 
93  inline ArtifactLocation& WithS3Location(S3ArtifactLocation&& value) { SetS3Location(value); return *this;}
94 
95  private:
96  ArtifactLocationType m_type;
97  bool m_typeHasBeenSet;
98  S3ArtifactLocation m_s3Location;
99  bool m_s3LocationHasBeenSet;
100  };
101 
102 } // namespace Model
103 } // namespace CodePipeline
104 } // namespace Aws
void SetS3Location(S3ArtifactLocation &&value)
void SetS3Location(const S3ArtifactLocation &value)
void SetType(ArtifactLocationType &&value)
const S3ArtifactLocation & GetS3Location() const
ArtifactLocation & WithS3Location(S3ArtifactLocation &&value)
#define AWS_CODEPIPELINE_API
ArtifactLocation & WithType(ArtifactLocationType &&value)
ArtifactLocation & WithS3Location(const S3ArtifactLocation &value)
void SetType(const ArtifactLocationType &value)
const ArtifactLocationType & GetType() const
ArtifactLocation & WithType(const ArtifactLocationType &value)
JSON (JavaScript Object Notation).