284 lines
11 KiB
C++
284 lines
11 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/codebuild/CodeBuild_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <aws/codebuild/model/StatusType.h>
|
|
#include <aws/codebuild/model/ResolvedArtifact.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CodeBuild
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Contains summary information about a batch build group.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildSummary">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CODEBUILD_API BuildSummary
|
|
{
|
|
public:
|
|
BuildSummary();
|
|
BuildSummary(Aws::Utils::Json::JsonView jsonValue);
|
|
BuildSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline const Aws::String& GetArn() const{ return m_arn; }
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline BuildSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline BuildSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The batch build ARN.</p>
|
|
*/
|
|
inline BuildSummary& WithArn(const char* value) { SetArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>When the build was started, expressed in Unix time format.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetRequestedOn() const{ return m_requestedOn; }
|
|
|
|
/**
|
|
* <p>When the build was started, expressed in Unix time format.</p>
|
|
*/
|
|
inline bool RequestedOnHasBeenSet() const { return m_requestedOnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>When the build was started, expressed in Unix time format.</p>
|
|
*/
|
|
inline void SetRequestedOn(const Aws::Utils::DateTime& value) { m_requestedOnHasBeenSet = true; m_requestedOn = value; }
|
|
|
|
/**
|
|
* <p>When the build was started, expressed in Unix time format.</p>
|
|
*/
|
|
inline void SetRequestedOn(Aws::Utils::DateTime&& value) { m_requestedOnHasBeenSet = true; m_requestedOn = std::move(value); }
|
|
|
|
/**
|
|
* <p>When the build was started, expressed in Unix time format.</p>
|
|
*/
|
|
inline BuildSummary& WithRequestedOn(const Aws::Utils::DateTime& value) { SetRequestedOn(value); return *this;}
|
|
|
|
/**
|
|
* <p>When the build was started, expressed in Unix time format.</p>
|
|
*/
|
|
inline BuildSummary& WithRequestedOn(Aws::Utils::DateTime&& value) { SetRequestedOn(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The status of the build group.</p> <dl> <dt>FAILED</dt> <dd> <p>The build
|
|
* group failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build group faulted.</p>
|
|
* </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build group is still in progress.</p>
|
|
* </dd> <dt>STOPPED</dt> <dd> <p>The build group stopped.</p> </dd>
|
|
* <dt>SUCCEEDED</dt> <dd> <p>The build group succeeded.</p> </dd>
|
|
* <dt>TIMED_OUT</dt> <dd> <p>The build group timed out.</p> </dd> </dl>
|
|
*/
|
|
inline const StatusType& GetBuildStatus() const{ return m_buildStatus; }
|
|
|
|
/**
|
|
* <p>The status of the build group.</p> <dl> <dt>FAILED</dt> <dd> <p>The build
|
|
* group failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build group faulted.</p>
|
|
* </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build group is still in progress.</p>
|
|
* </dd> <dt>STOPPED</dt> <dd> <p>The build group stopped.</p> </dd>
|
|
* <dt>SUCCEEDED</dt> <dd> <p>The build group succeeded.</p> </dd>
|
|
* <dt>TIMED_OUT</dt> <dd> <p>The build group timed out.</p> </dd> </dl>
|
|
*/
|
|
inline bool BuildStatusHasBeenSet() const { return m_buildStatusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The status of the build group.</p> <dl> <dt>FAILED</dt> <dd> <p>The build
|
|
* group failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build group faulted.</p>
|
|
* </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build group is still in progress.</p>
|
|
* </dd> <dt>STOPPED</dt> <dd> <p>The build group stopped.</p> </dd>
|
|
* <dt>SUCCEEDED</dt> <dd> <p>The build group succeeded.</p> </dd>
|
|
* <dt>TIMED_OUT</dt> <dd> <p>The build group timed out.</p> </dd> </dl>
|
|
*/
|
|
inline void SetBuildStatus(const StatusType& value) { m_buildStatusHasBeenSet = true; m_buildStatus = value; }
|
|
|
|
/**
|
|
* <p>The status of the build group.</p> <dl> <dt>FAILED</dt> <dd> <p>The build
|
|
* group failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build group faulted.</p>
|
|
* </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build group is still in progress.</p>
|
|
* </dd> <dt>STOPPED</dt> <dd> <p>The build group stopped.</p> </dd>
|
|
* <dt>SUCCEEDED</dt> <dd> <p>The build group succeeded.</p> </dd>
|
|
* <dt>TIMED_OUT</dt> <dd> <p>The build group timed out.</p> </dd> </dl>
|
|
*/
|
|
inline void SetBuildStatus(StatusType&& value) { m_buildStatusHasBeenSet = true; m_buildStatus = std::move(value); }
|
|
|
|
/**
|
|
* <p>The status of the build group.</p> <dl> <dt>FAILED</dt> <dd> <p>The build
|
|
* group failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build group faulted.</p>
|
|
* </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build group is still in progress.</p>
|
|
* </dd> <dt>STOPPED</dt> <dd> <p>The build group stopped.</p> </dd>
|
|
* <dt>SUCCEEDED</dt> <dd> <p>The build group succeeded.</p> </dd>
|
|
* <dt>TIMED_OUT</dt> <dd> <p>The build group timed out.</p> </dd> </dl>
|
|
*/
|
|
inline BuildSummary& WithBuildStatus(const StatusType& value) { SetBuildStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>The status of the build group.</p> <dl> <dt>FAILED</dt> <dd> <p>The build
|
|
* group failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build group faulted.</p>
|
|
* </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build group is still in progress.</p>
|
|
* </dd> <dt>STOPPED</dt> <dd> <p>The build group stopped.</p> </dd>
|
|
* <dt>SUCCEEDED</dt> <dd> <p>The build group succeeded.</p> </dd>
|
|
* <dt>TIMED_OUT</dt> <dd> <p>The build group timed out.</p> </dd> </dl>
|
|
*/
|
|
inline BuildSummary& WithBuildStatus(StatusType&& value) { SetBuildStatus(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A <code>ResolvedArtifact</code> object that represents the primary build
|
|
* artifacts for the build group.</p>
|
|
*/
|
|
inline const ResolvedArtifact& GetPrimaryArtifact() const{ return m_primaryArtifact; }
|
|
|
|
/**
|
|
* <p>A <code>ResolvedArtifact</code> object that represents the primary build
|
|
* artifacts for the build group.</p>
|
|
*/
|
|
inline bool PrimaryArtifactHasBeenSet() const { return m_primaryArtifactHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A <code>ResolvedArtifact</code> object that represents the primary build
|
|
* artifacts for the build group.</p>
|
|
*/
|
|
inline void SetPrimaryArtifact(const ResolvedArtifact& value) { m_primaryArtifactHasBeenSet = true; m_primaryArtifact = value; }
|
|
|
|
/**
|
|
* <p>A <code>ResolvedArtifact</code> object that represents the primary build
|
|
* artifacts for the build group.</p>
|
|
*/
|
|
inline void SetPrimaryArtifact(ResolvedArtifact&& value) { m_primaryArtifactHasBeenSet = true; m_primaryArtifact = std::move(value); }
|
|
|
|
/**
|
|
* <p>A <code>ResolvedArtifact</code> object that represents the primary build
|
|
* artifacts for the build group.</p>
|
|
*/
|
|
inline BuildSummary& WithPrimaryArtifact(const ResolvedArtifact& value) { SetPrimaryArtifact(value); return *this;}
|
|
|
|
/**
|
|
* <p>A <code>ResolvedArtifact</code> object that represents the primary build
|
|
* artifacts for the build group.</p>
|
|
*/
|
|
inline BuildSummary& WithPrimaryArtifact(ResolvedArtifact&& value) { SetPrimaryArtifact(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline const Aws::Vector<ResolvedArtifact>& GetSecondaryArtifacts() const{ return m_secondaryArtifacts; }
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline void SetSecondaryArtifacts(const Aws::Vector<ResolvedArtifact>& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = value; }
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline void SetSecondaryArtifacts(Aws::Vector<ResolvedArtifact>&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::move(value); }
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline BuildSummary& WithSecondaryArtifacts(const Aws::Vector<ResolvedArtifact>& value) { SetSecondaryArtifacts(value); return *this;}
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline BuildSummary& WithSecondaryArtifacts(Aws::Vector<ResolvedArtifact>&& value) { SetSecondaryArtifacts(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline BuildSummary& AddSecondaryArtifacts(const ResolvedArtifact& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>An array of <code>ResolvedArtifact</code> objects that represents the
|
|
* secondary build artifacts for the build group.</p>
|
|
*/
|
|
inline BuildSummary& AddSecondaryArtifacts(ResolvedArtifact&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_arn;
|
|
bool m_arnHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_requestedOn;
|
|
bool m_requestedOnHasBeenSet;
|
|
|
|
StatusType m_buildStatus;
|
|
bool m_buildStatusHasBeenSet;
|
|
|
|
ResolvedArtifact m_primaryArtifact;
|
|
bool m_primaryArtifactHasBeenSet;
|
|
|
|
Aws::Vector<ResolvedArtifact> m_secondaryArtifacts;
|
|
bool m_secondaryArtifactsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CodeBuild
|
|
} // namespace Aws
|