AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BuildSummary.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codebuild/model/StatusType.h>
11#include <aws/codebuild/model/ResolvedArtifact.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeBuild
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEBUILD_API BuildSummary();
40 AWS_CODEBUILD_API BuildSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API BuildSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline BuildSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline BuildSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline BuildSummary& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetRequestedOn() const{ return m_requestedOn; }
64 inline bool RequestedOnHasBeenSet() const { return m_requestedOnHasBeenSet; }
65 inline void SetRequestedOn(const Aws::Utils::DateTime& value) { m_requestedOnHasBeenSet = true; m_requestedOn = value; }
66 inline void SetRequestedOn(Aws::Utils::DateTime&& value) { m_requestedOnHasBeenSet = true; m_requestedOn = std::move(value); }
67 inline BuildSummary& WithRequestedOn(const Aws::Utils::DateTime& value) { SetRequestedOn(value); return *this;}
68 inline BuildSummary& WithRequestedOn(Aws::Utils::DateTime&& value) { SetRequestedOn(std::move(value)); return *this;}
70
72
80 inline const StatusType& GetBuildStatus() const{ return m_buildStatus; }
81 inline bool BuildStatusHasBeenSet() const { return m_buildStatusHasBeenSet; }
82 inline void SetBuildStatus(const StatusType& value) { m_buildStatusHasBeenSet = true; m_buildStatus = value; }
83 inline void SetBuildStatus(StatusType&& value) { m_buildStatusHasBeenSet = true; m_buildStatus = std::move(value); }
84 inline BuildSummary& WithBuildStatus(const StatusType& value) { SetBuildStatus(value); return *this;}
85 inline BuildSummary& WithBuildStatus(StatusType&& value) { SetBuildStatus(std::move(value)); return *this;}
87
89
93 inline const ResolvedArtifact& GetPrimaryArtifact() const{ return m_primaryArtifact; }
94 inline bool PrimaryArtifactHasBeenSet() const { return m_primaryArtifactHasBeenSet; }
95 inline void SetPrimaryArtifact(const ResolvedArtifact& value) { m_primaryArtifactHasBeenSet = true; m_primaryArtifact = value; }
96 inline void SetPrimaryArtifact(ResolvedArtifact&& value) { m_primaryArtifactHasBeenSet = true; m_primaryArtifact = std::move(value); }
97 inline BuildSummary& WithPrimaryArtifact(const ResolvedArtifact& value) { SetPrimaryArtifact(value); return *this;}
98 inline BuildSummary& WithPrimaryArtifact(ResolvedArtifact&& value) { SetPrimaryArtifact(std::move(value)); return *this;}
100
102
106 inline const Aws::Vector<ResolvedArtifact>& GetSecondaryArtifacts() const{ return m_secondaryArtifacts; }
107 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
108 inline void SetSecondaryArtifacts(const Aws::Vector<ResolvedArtifact>& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = value; }
109 inline void SetSecondaryArtifacts(Aws::Vector<ResolvedArtifact>&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::move(value); }
112 inline BuildSummary& AddSecondaryArtifacts(const ResolvedArtifact& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(value); return *this; }
113 inline BuildSummary& AddSecondaryArtifacts(ResolvedArtifact&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(std::move(value)); return *this; }
115 private:
116
117 Aws::String m_arn;
118 bool m_arnHasBeenSet = false;
119
120 Aws::Utils::DateTime m_requestedOn;
121 bool m_requestedOnHasBeenSet = false;
122
123 StatusType m_buildStatus;
124 bool m_buildStatusHasBeenSet = false;
125
126 ResolvedArtifact m_primaryArtifact;
127 bool m_primaryArtifactHasBeenSet = false;
128
129 Aws::Vector<ResolvedArtifact> m_secondaryArtifacts;
130 bool m_secondaryArtifactsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace CodeBuild
135} // namespace Aws
BuildSummary & AddSecondaryArtifacts(const ResolvedArtifact &value)
AWS_CODEBUILD_API BuildSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResolvedArtifact & GetPrimaryArtifact() const
BuildSummary & WithSecondaryArtifacts(Aws::Vector< ResolvedArtifact > &&value)
void SetArn(const char *value)
void SetArn(Aws::String &&value)
BuildSummary & WithBuildStatus(const StatusType &value)
BuildSummary & WithArn(Aws::String &&value)
void SetRequestedOn(const Aws::Utils::DateTime &value)
AWS_CODEBUILD_API BuildSummary(Aws::Utils::Json::JsonView jsonValue)
BuildSummary & WithPrimaryArtifact(const ResolvedArtifact &value)
BuildSummary & WithSecondaryArtifacts(const Aws::Vector< ResolvedArtifact > &value)
void SetSecondaryArtifacts(const Aws::Vector< ResolvedArtifact > &value)
void SetPrimaryArtifact(const ResolvedArtifact &value)
BuildSummary & WithPrimaryArtifact(ResolvedArtifact &&value)
void SetBuildStatus(const StatusType &value)
const Aws::Vector< ResolvedArtifact > & GetSecondaryArtifacts() const
void SetArn(const Aws::String &value)
const Aws::Utils::DateTime & GetRequestedOn() const
const StatusType & GetBuildStatus() const
BuildSummary & WithBuildStatus(StatusType &&value)
void SetBuildStatus(StatusType &&value)
void SetSecondaryArtifacts(Aws::Vector< ResolvedArtifact > &&value)
const Aws::String & GetArn() const
BuildSummary & WithArn(const Aws::String &value)
BuildSummary & WithArn(const char *value)
void SetPrimaryArtifact(ResolvedArtifact &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
BuildSummary & WithRequestedOn(Aws::Utils::DateTime &&value)
void SetRequestedOn(Aws::Utils::DateTime &&value)
BuildSummary & WithRequestedOn(const Aws::Utils::DateTime &value)
BuildSummary & AddSecondaryArtifacts(ResolvedArtifact &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue