AWS SDK for C++

AWS SDK for C++ Version 1.11.942

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#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
31 public:
32 AWS_CODEBUILD_API ResolvedArtifact() = default;
33 AWS_CODEBUILD_API ResolvedArtifact(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CODEBUILD_API ResolvedArtifact& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ResolvedArtifact & WithLocation(LocationT &&value)
void SetIdentifier(IdentifierT &&value)
AWS_CODEBUILD_API ResolvedArtifact(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEBUILD_API ResolvedArtifact & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetLocation() const
const Aws::String & GetIdentifier() const
ResolvedArtifact & WithType(ArtifactsType value)
ResolvedArtifact & WithIdentifier(IdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String