AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ArtifactLocation.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ArtifactLocationType.h>
9#include <aws/codepipeline/model/S3ArtifactLocation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEPIPELINE_API ArtifactLocation();
37 AWS_CODEPIPELINE_API ArtifactLocation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API ArtifactLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ArtifactLocationType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const ArtifactLocationType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(ArtifactLocationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline ArtifactLocation& WithType(const ArtifactLocationType& value) { SetType(value); return *this;}
51 inline ArtifactLocation& WithType(ArtifactLocationType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const S3ArtifactLocation& GetS3Location() const{ return m_s3Location; }
59 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
60 inline void SetS3Location(const S3ArtifactLocation& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
61 inline void SetS3Location(S3ArtifactLocation&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); }
62 inline ArtifactLocation& WithS3Location(const S3ArtifactLocation& value) { SetS3Location(value); return *this;}
63 inline ArtifactLocation& WithS3Location(S3ArtifactLocation&& value) { SetS3Location(std::move(value)); return *this;}
65 private:
66
68 bool m_typeHasBeenSet = false;
69
70 S3ArtifactLocation m_s3Location;
71 bool m_s3LocationHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CodePipeline
76} // namespace Aws
ArtifactLocation & WithS3Location(const S3ArtifactLocation &value)
ArtifactLocation & WithS3Location(S3ArtifactLocation &&value)
void SetS3Location(S3ArtifactLocation &&value)
const S3ArtifactLocation & GetS3Location() const
AWS_CODEPIPELINE_API ArtifactLocation(Aws::Utils::Json::JsonView jsonValue)
void SetS3Location(const S3ArtifactLocation &value)
const ArtifactLocationType & GetType() const
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const ArtifactLocationType &value)
void SetType(ArtifactLocationType &&value)
ArtifactLocation & WithType(ArtifactLocationType &&value)
AWS_CODEPIPELINE_API ArtifactLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
ArtifactLocation & WithType(const ArtifactLocationType &value)
Aws::Utils::Json::JsonValue JsonValue