AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResolvedArtifact.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/ArtifactsType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
31 public:
32 AWS_CODEBUILD_API ResolvedArtifact() = default;
33 AWS_CODEBUILD_API ResolvedArtifact(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ArtifactsType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(ArtifactsType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLocation() const { return m_location; }
58 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
59 template <typename LocationT = Aws::String>
60 void SetLocation(LocationT&& value) {
61 m_locationHasBeenSet = true;
62 m_location = std::forward<LocationT>(value);
63 }
64 template <typename LocationT = Aws::String>
65 ResolvedArtifact& WithLocation(LocationT&& value) {
66 SetLocation(std::forward<LocationT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetIdentifier() const { return m_identifier; }
76 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
77 template <typename IdentifierT = Aws::String>
78 void SetIdentifier(IdentifierT&& value) {
79 m_identifierHasBeenSet = true;
80 m_identifier = std::forward<IdentifierT>(value);
81 }
82 template <typename IdentifierT = Aws::String>
83 ResolvedArtifact& WithIdentifier(IdentifierT&& value) {
84 SetIdentifier(std::forward<IdentifierT>(value));
85 return *this;
86 }
88 private:
90
91 Aws::String m_location;
92
93 Aws::String m_identifier;
94 bool m_typeHasBeenSet = false;
95 bool m_locationHasBeenSet = false;
96 bool m_identifierHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CodeBuild
101} // namespace Aws
AWS_CODEBUILD_API ResolvedArtifact()=default
ResolvedArtifact & WithLocation(LocationT &&value)
void SetIdentifier(IdentifierT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API ResolvedArtifact(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLocation() const
const Aws::String & GetIdentifier() const
ResolvedArtifact & WithType(ArtifactsType value)
AWS_CODEBUILD_API ResolvedArtifact & operator=(Aws::Utils::Json::JsonView jsonValue)
ResolvedArtifact & WithIdentifier(IdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue