AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodePipeline {
21namespace Model {
22
30 public:
31 AWS_CODEPIPELINE_API ArtifactLocation() = default;
32 AWS_CODEPIPELINE_API ArtifactLocation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API ArtifactLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ArtifactLocationType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(ArtifactLocationType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const S3ArtifactLocation& GetS3Location() const { return m_s3Location; }
57 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
58 template <typename S3LocationT = S3ArtifactLocation>
59 void SetS3Location(S3LocationT&& value) {
60 m_s3LocationHasBeenSet = true;
61 m_s3Location = std::forward<S3LocationT>(value);
62 }
63 template <typename S3LocationT = S3ArtifactLocation>
64 ArtifactLocation& WithS3Location(S3LocationT&& value) {
65 SetS3Location(std::forward<S3LocationT>(value));
66 return *this;
67 }
69 private:
71
72 S3ArtifactLocation m_s3Location;
73 bool m_typeHasBeenSet = false;
74 bool m_s3LocationHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CodePipeline
79} // namespace Aws
ArtifactLocation & WithType(ArtifactLocationType value)
const S3ArtifactLocation & GetS3Location() const
ArtifactLocation & WithS3Location(S3LocationT &&value)
AWS_CODEPIPELINE_API ArtifactLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(ArtifactLocationType value)
AWS_CODEPIPELINE_API ArtifactLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API ArtifactLocation()=default
Aws::Utils::Json::JsonValue JsonValue