feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
/**
* 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/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeBuild
{
namespace CodeBuildEndpoint
{
AWS_CODEBUILD_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace CodeBuildEndpoint
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* 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/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_CODEBUILD_API CodeBuildErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
namespace CodeBuild
{
enum class CodeBuildErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
ACCOUNT_LIMIT_EXCEEDED= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_INPUT,
O_AUTH_PROVIDER,
RESOURCE_ALREADY_EXISTS
};
class AWS_CODEBUILD_API CodeBuildError : public Aws::Client::AWSError<CodeBuildErrors>
{
public:
CodeBuildError() {}
CodeBuildError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<CodeBuildErrors>(rhs) {}
CodeBuildError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<CodeBuildErrors>(rhs) {}
CodeBuildError(const Aws::Client::AWSError<CodeBuildErrors>& rhs) : Aws::Client::AWSError<CodeBuildErrors>(rhs) {}
CodeBuildError(Aws::Client::AWSError<CodeBuildErrors>&& rhs) : Aws::Client::AWSError<CodeBuildErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace CodeBuildErrorMapper
{
AWS_CODEBUILD_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* 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/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace CodeBuild
{
class AWS_CODEBUILD_API CodeBuildRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~CodeBuildRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2016-10-06"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_CODEBUILD_EXPORTS
#define AWS_CODEBUILD_API __declspec(dllexport)
#else
#define AWS_CODEBUILD_API __declspec(dllimport)
#endif /* AWS_CODEBUILD_EXPORTS */
#else
#define AWS_CODEBUILD_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_CODEBUILD_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,31 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class ArtifactNamespace
{
NOT_SET,
NONE,
BUILD_ID
};
namespace ArtifactNamespaceMapper
{
AWS_CODEBUILD_API ArtifactNamespace GetArtifactNamespaceForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForArtifactNamespace(ArtifactNamespace value);
} // namespace ArtifactNamespaceMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class ArtifactPackaging
{
NOT_SET,
NONE,
ZIP
};
namespace ArtifactPackagingMapper
{
AWS_CODEBUILD_API ArtifactPackaging GetArtifactPackagingForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForArtifactPackaging(ArtifactPackaging value);
} // namespace ArtifactPackagingMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class ArtifactsType
{
NOT_SET,
CODEPIPELINE,
S3,
NO_ARTIFACTS
};
namespace ArtifactsTypeMapper
{
AWS_CODEBUILD_API ArtifactsType GetArtifactsTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForArtifactsType(ArtifactsType value);
} // namespace ArtifactsTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class AuthType
{
NOT_SET,
OAUTH,
BASIC_AUTH,
PERSONAL_ACCESS_TOKEN
};
namespace AuthTypeMapper
{
AWS_CODEBUILD_API AuthType GetAuthTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForAuthType(AuthType value);
} // namespace AuthTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API BatchDeleteBuildsRequest : public CodeBuildRequest
{
public:
BatchDeleteBuildsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "BatchDeleteBuilds"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The IDs of the builds to delete.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>The IDs of the builds to delete.</p>
*/
inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
/**
* <p>The IDs of the builds to delete.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
/**
* <p>The IDs of the builds to delete.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
/**
* <p>The IDs of the builds to delete.</p>
*/
inline BatchDeleteBuildsRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>The IDs of the builds to delete.</p>
*/
inline BatchDeleteBuildsRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>The IDs of the builds to delete.</p>
*/
inline BatchDeleteBuildsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
/**
* <p>The IDs of the builds to delete.</p>
*/
inline BatchDeleteBuildsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
/**
* <p>The IDs of the builds to delete.</p>
*/
inline BatchDeleteBuildsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_ids;
bool m_idsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/BuildNotDeleted.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API BatchDeleteBuildsResult
{
public:
BatchDeleteBuildsResult();
BatchDeleteBuildsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDeleteBuildsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline const Aws::Vector<Aws::String>& GetBuildsDeleted() const{ return m_buildsDeleted; }
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline void SetBuildsDeleted(const Aws::Vector<Aws::String>& value) { m_buildsDeleted = value; }
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline void SetBuildsDeleted(Aws::Vector<Aws::String>&& value) { m_buildsDeleted = std::move(value); }
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& WithBuildsDeleted(const Aws::Vector<Aws::String>& value) { SetBuildsDeleted(value); return *this;}
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& WithBuildsDeleted(Aws::Vector<Aws::String>&& value) { SetBuildsDeleted(std::move(value)); return *this;}
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& AddBuildsDeleted(const Aws::String& value) { m_buildsDeleted.push_back(value); return *this; }
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& AddBuildsDeleted(Aws::String&& value) { m_buildsDeleted.push_back(std::move(value)); return *this; }
/**
* <p>The IDs of the builds that were successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& AddBuildsDeleted(const char* value) { m_buildsDeleted.push_back(value); return *this; }
/**
* <p>Information about any builds that could not be successfully deleted.</p>
*/
inline const Aws::Vector<BuildNotDeleted>& GetBuildsNotDeleted() const{ return m_buildsNotDeleted; }
/**
* <p>Information about any builds that could not be successfully deleted.</p>
*/
inline void SetBuildsNotDeleted(const Aws::Vector<BuildNotDeleted>& value) { m_buildsNotDeleted = value; }
/**
* <p>Information about any builds that could not be successfully deleted.</p>
*/
inline void SetBuildsNotDeleted(Aws::Vector<BuildNotDeleted>&& value) { m_buildsNotDeleted = std::move(value); }
/**
* <p>Information about any builds that could not be successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& WithBuildsNotDeleted(const Aws::Vector<BuildNotDeleted>& value) { SetBuildsNotDeleted(value); return *this;}
/**
* <p>Information about any builds that could not be successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& WithBuildsNotDeleted(Aws::Vector<BuildNotDeleted>&& value) { SetBuildsNotDeleted(std::move(value)); return *this;}
/**
* <p>Information about any builds that could not be successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& AddBuildsNotDeleted(const BuildNotDeleted& value) { m_buildsNotDeleted.push_back(value); return *this; }
/**
* <p>Information about any builds that could not be successfully deleted.</p>
*/
inline BatchDeleteBuildsResult& AddBuildsNotDeleted(BuildNotDeleted&& value) { m_buildsNotDeleted.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Aws::String> m_buildsDeleted;
Aws::Vector<BuildNotDeleted> m_buildsNotDeleted;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API BatchGetBuildBatchesRequest : public CodeBuildRequest
{
public:
BatchGetBuildBatchesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "BatchGetBuildBatches"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline BatchGetBuildBatchesRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline BatchGetBuildBatchesRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline BatchGetBuildBatchesRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline BatchGetBuildBatchesRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
/**
* <p>An array that contains the batch build identifiers to retrieve.</p>
*/
inline BatchGetBuildBatchesRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_ids;
bool m_idsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* 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/AWSVector.h>
#include <aws/codebuild/model/BuildBatch.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API BatchGetBuildBatchesResult
{
public:
BatchGetBuildBatchesResult();
BatchGetBuildBatchesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetBuildBatchesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of <code>BuildBatch</code> objects that represent the retrieved
* batch builds.</p>
*/
inline const Aws::Vector<BuildBatch>& GetBuildBatches() const{ return m_buildBatches; }
/**
* <p>An array of <code>BuildBatch</code> objects that represent the retrieved
* batch builds.</p>
*/
inline void SetBuildBatches(const Aws::Vector<BuildBatch>& value) { m_buildBatches = value; }
/**
* <p>An array of <code>BuildBatch</code> objects that represent the retrieved
* batch builds.</p>
*/
inline void SetBuildBatches(Aws::Vector<BuildBatch>&& value) { m_buildBatches = std::move(value); }
/**
* <p>An array of <code>BuildBatch</code> objects that represent the retrieved
* batch builds.</p>
*/
inline BatchGetBuildBatchesResult& WithBuildBatches(const Aws::Vector<BuildBatch>& value) { SetBuildBatches(value); return *this;}
/**
* <p>An array of <code>BuildBatch</code> objects that represent the retrieved
* batch builds.</p>
*/
inline BatchGetBuildBatchesResult& WithBuildBatches(Aws::Vector<BuildBatch>&& value) { SetBuildBatches(std::move(value)); return *this;}
/**
* <p>An array of <code>BuildBatch</code> objects that represent the retrieved
* batch builds.</p>
*/
inline BatchGetBuildBatchesResult& AddBuildBatches(const BuildBatch& value) { m_buildBatches.push_back(value); return *this; }
/**
* <p>An array of <code>BuildBatch</code> objects that represent the retrieved
* batch builds.</p>
*/
inline BatchGetBuildBatchesResult& AddBuildBatches(BuildBatch&& value) { m_buildBatches.push_back(std::move(value)); return *this; }
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline const Aws::Vector<Aws::String>& GetBuildBatchesNotFound() const{ return m_buildBatchesNotFound; }
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline void SetBuildBatchesNotFound(const Aws::Vector<Aws::String>& value) { m_buildBatchesNotFound = value; }
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline void SetBuildBatchesNotFound(Aws::Vector<Aws::String>&& value) { m_buildBatchesNotFound = std::move(value); }
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline BatchGetBuildBatchesResult& WithBuildBatchesNotFound(const Aws::Vector<Aws::String>& value) { SetBuildBatchesNotFound(value); return *this;}
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline BatchGetBuildBatchesResult& WithBuildBatchesNotFound(Aws::Vector<Aws::String>&& value) { SetBuildBatchesNotFound(std::move(value)); return *this;}
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline BatchGetBuildBatchesResult& AddBuildBatchesNotFound(const Aws::String& value) { m_buildBatchesNotFound.push_back(value); return *this; }
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline BatchGetBuildBatchesResult& AddBuildBatchesNotFound(Aws::String&& value) { m_buildBatchesNotFound.push_back(std::move(value)); return *this; }
/**
* <p>An array that contains the identifiers of any batch builds that are not
* found.</p>
*/
inline BatchGetBuildBatchesResult& AddBuildBatchesNotFound(const char* value) { m_buildBatchesNotFound.push_back(value); return *this; }
private:
Aws::Vector<BuildBatch> m_buildBatches;
Aws::Vector<Aws::String> m_buildBatchesNotFound;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API BatchGetBuildsRequest : public CodeBuildRequest
{
public:
BatchGetBuildsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "BatchGetBuilds"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The IDs of the builds.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>The IDs of the builds.</p>
*/
inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
/**
* <p>The IDs of the builds.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
/**
* <p>The IDs of the builds.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
/**
* <p>The IDs of the builds.</p>
*/
inline BatchGetBuildsRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>The IDs of the builds.</p>
*/
inline BatchGetBuildsRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>The IDs of the builds.</p>
*/
inline BatchGetBuildsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
/**
* <p>The IDs of the builds.</p>
*/
inline BatchGetBuildsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
/**
* <p>The IDs of the builds.</p>
*/
inline BatchGetBuildsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_ids;
bool m_idsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* 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/AWSVector.h>
#include <aws/codebuild/model/Build.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API BatchGetBuildsResult
{
public:
BatchGetBuildsResult();
BatchGetBuildsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetBuildsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the requested builds.</p>
*/
inline const Aws::Vector<Build>& GetBuilds() const{ return m_builds; }
/**
* <p>Information about the requested builds.</p>
*/
inline void SetBuilds(const Aws::Vector<Build>& value) { m_builds = value; }
/**
* <p>Information about the requested builds.</p>
*/
inline void SetBuilds(Aws::Vector<Build>&& value) { m_builds = std::move(value); }
/**
* <p>Information about the requested builds.</p>
*/
inline BatchGetBuildsResult& WithBuilds(const Aws::Vector<Build>& value) { SetBuilds(value); return *this;}
/**
* <p>Information about the requested builds.</p>
*/
inline BatchGetBuildsResult& WithBuilds(Aws::Vector<Build>&& value) { SetBuilds(std::move(value)); return *this;}
/**
* <p>Information about the requested builds.</p>
*/
inline BatchGetBuildsResult& AddBuilds(const Build& value) { m_builds.push_back(value); return *this; }
/**
* <p>Information about the requested builds.</p>
*/
inline BatchGetBuildsResult& AddBuilds(Build&& value) { m_builds.push_back(std::move(value)); return *this; }
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline const Aws::Vector<Aws::String>& GetBuildsNotFound() const{ return m_buildsNotFound; }
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline void SetBuildsNotFound(const Aws::Vector<Aws::String>& value) { m_buildsNotFound = value; }
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline void SetBuildsNotFound(Aws::Vector<Aws::String>&& value) { m_buildsNotFound = std::move(value); }
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline BatchGetBuildsResult& WithBuildsNotFound(const Aws::Vector<Aws::String>& value) { SetBuildsNotFound(value); return *this;}
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline BatchGetBuildsResult& WithBuildsNotFound(Aws::Vector<Aws::String>&& value) { SetBuildsNotFound(std::move(value)); return *this;}
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline BatchGetBuildsResult& AddBuildsNotFound(const Aws::String& value) { m_buildsNotFound.push_back(value); return *this; }
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline BatchGetBuildsResult& AddBuildsNotFound(Aws::String&& value) { m_buildsNotFound.push_back(std::move(value)); return *this; }
/**
* <p>The IDs of builds for which information could not be found.</p>
*/
inline BatchGetBuildsResult& AddBuildsNotFound(const char* value) { m_buildsNotFound.push_back(value); return *this; }
private:
Aws::Vector<Build> m_builds;
Aws::Vector<Aws::String> m_buildsNotFound;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,109 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API BatchGetProjectsRequest : public CodeBuildRequest
{
public:
BatchGetProjectsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "BatchGetProjects"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline BatchGetProjectsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline BatchGetProjectsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline BatchGetProjectsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline BatchGetProjectsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>The names or ARNs of the build projects. To get information about a project
* shared with your AWS account, its ARN must be specified. You cannot specify a
* shared project using its name.</p>
*/
inline BatchGetProjectsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* 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/AWSVector.h>
#include <aws/codebuild/model/Project.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API BatchGetProjectsResult
{
public:
BatchGetProjectsResult();
BatchGetProjectsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetProjectsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the requested build projects.</p>
*/
inline const Aws::Vector<Project>& GetProjects() const{ return m_projects; }
/**
* <p>Information about the requested build projects.</p>
*/
inline void SetProjects(const Aws::Vector<Project>& value) { m_projects = value; }
/**
* <p>Information about the requested build projects.</p>
*/
inline void SetProjects(Aws::Vector<Project>&& value) { m_projects = std::move(value); }
/**
* <p>Information about the requested build projects.</p>
*/
inline BatchGetProjectsResult& WithProjects(const Aws::Vector<Project>& value) { SetProjects(value); return *this;}
/**
* <p>Information about the requested build projects.</p>
*/
inline BatchGetProjectsResult& WithProjects(Aws::Vector<Project>&& value) { SetProjects(std::move(value)); return *this;}
/**
* <p>Information about the requested build projects.</p>
*/
inline BatchGetProjectsResult& AddProjects(const Project& value) { m_projects.push_back(value); return *this; }
/**
* <p>Information about the requested build projects.</p>
*/
inline BatchGetProjectsResult& AddProjects(Project&& value) { m_projects.push_back(std::move(value)); return *this; }
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline const Aws::Vector<Aws::String>& GetProjectsNotFound() const{ return m_projectsNotFound; }
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline void SetProjectsNotFound(const Aws::Vector<Aws::String>& value) { m_projectsNotFound = value; }
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline void SetProjectsNotFound(Aws::Vector<Aws::String>&& value) { m_projectsNotFound = std::move(value); }
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline BatchGetProjectsResult& WithProjectsNotFound(const Aws::Vector<Aws::String>& value) { SetProjectsNotFound(value); return *this;}
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline BatchGetProjectsResult& WithProjectsNotFound(Aws::Vector<Aws::String>&& value) { SetProjectsNotFound(std::move(value)); return *this;}
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline BatchGetProjectsResult& AddProjectsNotFound(const Aws::String& value) { m_projectsNotFound.push_back(value); return *this; }
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline BatchGetProjectsResult& AddProjectsNotFound(Aws::String&& value) { m_projectsNotFound.push_back(std::move(value)); return *this; }
/**
* <p>The names of build projects for which information could not be found.</p>
*/
inline BatchGetProjectsResult& AddProjectsNotFound(const char* value) { m_projectsNotFound.push_back(value); return *this; }
private:
Aws::Vector<Project> m_projects;
Aws::Vector<Aws::String> m_projectsNotFound;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API BatchGetReportGroupsRequest : public CodeBuildRequest
{
public:
BatchGetReportGroupsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "BatchGetReportGroups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline const Aws::Vector<Aws::String>& GetReportGroupArns() const{ return m_reportGroupArns; }
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline bool ReportGroupArnsHasBeenSet() const { return m_reportGroupArnsHasBeenSet; }
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline void SetReportGroupArns(const Aws::Vector<Aws::String>& value) { m_reportGroupArnsHasBeenSet = true; m_reportGroupArns = value; }
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline void SetReportGroupArns(Aws::Vector<Aws::String>&& value) { m_reportGroupArnsHasBeenSet = true; m_reportGroupArns = std::move(value); }
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline BatchGetReportGroupsRequest& WithReportGroupArns(const Aws::Vector<Aws::String>& value) { SetReportGroupArns(value); return *this;}
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline BatchGetReportGroupsRequest& WithReportGroupArns(Aws::Vector<Aws::String>&& value) { SetReportGroupArns(std::move(value)); return *this;}
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline BatchGetReportGroupsRequest& AddReportGroupArns(const Aws::String& value) { m_reportGroupArnsHasBeenSet = true; m_reportGroupArns.push_back(value); return *this; }
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline BatchGetReportGroupsRequest& AddReportGroupArns(Aws::String&& value) { m_reportGroupArnsHasBeenSet = true; m_reportGroupArns.push_back(std::move(value)); return *this; }
/**
* <p> An array of report group ARNs that identify the report groups to return.
* </p>
*/
inline BatchGetReportGroupsRequest& AddReportGroupArns(const char* value) { m_reportGroupArnsHasBeenSet = true; m_reportGroupArns.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_reportGroupArns;
bool m_reportGroupArnsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* 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/AWSVector.h>
#include <aws/codebuild/model/ReportGroup.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API BatchGetReportGroupsResult
{
public:
BatchGetReportGroupsResult();
BatchGetReportGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetReportGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The array of report groups returned by <code>BatchGetReportGroups</code>.
* </p>
*/
inline const Aws::Vector<ReportGroup>& GetReportGroups() const{ return m_reportGroups; }
/**
* <p> The array of report groups returned by <code>BatchGetReportGroups</code>.
* </p>
*/
inline void SetReportGroups(const Aws::Vector<ReportGroup>& value) { m_reportGroups = value; }
/**
* <p> The array of report groups returned by <code>BatchGetReportGroups</code>.
* </p>
*/
inline void SetReportGroups(Aws::Vector<ReportGroup>&& value) { m_reportGroups = std::move(value); }
/**
* <p> The array of report groups returned by <code>BatchGetReportGroups</code>.
* </p>
*/
inline BatchGetReportGroupsResult& WithReportGroups(const Aws::Vector<ReportGroup>& value) { SetReportGroups(value); return *this;}
/**
* <p> The array of report groups returned by <code>BatchGetReportGroups</code>.
* </p>
*/
inline BatchGetReportGroupsResult& WithReportGroups(Aws::Vector<ReportGroup>&& value) { SetReportGroups(std::move(value)); return *this;}
/**
* <p> The array of report groups returned by <code>BatchGetReportGroups</code>.
* </p>
*/
inline BatchGetReportGroupsResult& AddReportGroups(const ReportGroup& value) { m_reportGroups.push_back(value); return *this; }
/**
* <p> The array of report groups returned by <code>BatchGetReportGroups</code>.
* </p>
*/
inline BatchGetReportGroupsResult& AddReportGroups(ReportGroup&& value) { m_reportGroups.push_back(std::move(value)); return *this; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline const Aws::Vector<Aws::String>& GetReportGroupsNotFound() const{ return m_reportGroupsNotFound; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline void SetReportGroupsNotFound(const Aws::Vector<Aws::String>& value) { m_reportGroupsNotFound = value; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline void SetReportGroupsNotFound(Aws::Vector<Aws::String>&& value) { m_reportGroupsNotFound = std::move(value); }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline BatchGetReportGroupsResult& WithReportGroupsNotFound(const Aws::Vector<Aws::String>& value) { SetReportGroupsNotFound(value); return *this;}
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline BatchGetReportGroupsResult& WithReportGroupsNotFound(Aws::Vector<Aws::String>&& value) { SetReportGroupsNotFound(std::move(value)); return *this;}
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline BatchGetReportGroupsResult& AddReportGroupsNotFound(const Aws::String& value) { m_reportGroupsNotFound.push_back(value); return *this; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline BatchGetReportGroupsResult& AddReportGroupsNotFound(Aws::String&& value) { m_reportGroupsNotFound.push_back(std::move(value)); return *this; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>ReportGroup</code>. </p>
*/
inline BatchGetReportGroupsResult& AddReportGroupsNotFound(const char* value) { m_reportGroupsNotFound.push_back(value); return *this; }
private:
Aws::Vector<ReportGroup> m_reportGroups;
Aws::Vector<Aws::String> m_reportGroupsNotFound;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API BatchGetReportsRequest : public CodeBuildRequest
{
public:
BatchGetReportsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "BatchGetReports"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline const Aws::Vector<Aws::String>& GetReportArns() const{ return m_reportArns; }
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline bool ReportArnsHasBeenSet() const { return m_reportArnsHasBeenSet; }
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline void SetReportArns(const Aws::Vector<Aws::String>& value) { m_reportArnsHasBeenSet = true; m_reportArns = value; }
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline void SetReportArns(Aws::Vector<Aws::String>&& value) { m_reportArnsHasBeenSet = true; m_reportArns = std::move(value); }
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline BatchGetReportsRequest& WithReportArns(const Aws::Vector<Aws::String>& value) { SetReportArns(value); return *this;}
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline BatchGetReportsRequest& WithReportArns(Aws::Vector<Aws::String>&& value) { SetReportArns(std::move(value)); return *this;}
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline BatchGetReportsRequest& AddReportArns(const Aws::String& value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(value); return *this; }
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline BatchGetReportsRequest& AddReportArns(Aws::String&& value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(std::move(value)); return *this; }
/**
* <p> An array of ARNs that identify the <code>Report</code> objects to return.
* </p>
*/
inline BatchGetReportsRequest& AddReportArns(const char* value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_reportArns;
bool m_reportArnsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* 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/AWSVector.h>
#include <aws/codebuild/model/Report.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API BatchGetReportsResult
{
public:
BatchGetReportsResult();
BatchGetReportsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetReportsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The array of <code>Report</code> objects returned by
* <code>BatchGetReports</code>. </p>
*/
inline const Aws::Vector<Report>& GetReports() const{ return m_reports; }
/**
* <p> The array of <code>Report</code> objects returned by
* <code>BatchGetReports</code>. </p>
*/
inline void SetReports(const Aws::Vector<Report>& value) { m_reports = value; }
/**
* <p> The array of <code>Report</code> objects returned by
* <code>BatchGetReports</code>. </p>
*/
inline void SetReports(Aws::Vector<Report>&& value) { m_reports = std::move(value); }
/**
* <p> The array of <code>Report</code> objects returned by
* <code>BatchGetReports</code>. </p>
*/
inline BatchGetReportsResult& WithReports(const Aws::Vector<Report>& value) { SetReports(value); return *this;}
/**
* <p> The array of <code>Report</code> objects returned by
* <code>BatchGetReports</code>. </p>
*/
inline BatchGetReportsResult& WithReports(Aws::Vector<Report>&& value) { SetReports(std::move(value)); return *this;}
/**
* <p> The array of <code>Report</code> objects returned by
* <code>BatchGetReports</code>. </p>
*/
inline BatchGetReportsResult& AddReports(const Report& value) { m_reports.push_back(value); return *this; }
/**
* <p> The array of <code>Report</code> objects returned by
* <code>BatchGetReports</code>. </p>
*/
inline BatchGetReportsResult& AddReports(Report&& value) { m_reports.push_back(std::move(value)); return *this; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline const Aws::Vector<Aws::String>& GetReportsNotFound() const{ return m_reportsNotFound; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline void SetReportsNotFound(const Aws::Vector<Aws::String>& value) { m_reportsNotFound = value; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline void SetReportsNotFound(Aws::Vector<Aws::String>&& value) { m_reportsNotFound = std::move(value); }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline BatchGetReportsResult& WithReportsNotFound(const Aws::Vector<Aws::String>& value) { SetReportsNotFound(value); return *this;}
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline BatchGetReportsResult& WithReportsNotFound(Aws::Vector<Aws::String>&& value) { SetReportsNotFound(std::move(value)); return *this;}
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline BatchGetReportsResult& AddReportsNotFound(const Aws::String& value) { m_reportsNotFound.push_back(value); return *this; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline BatchGetReportsResult& AddReportsNotFound(Aws::String&& value) { m_reportsNotFound.push_back(std::move(value)); return *this; }
/**
* <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not
* associated with a <code>Report</code>. </p>
*/
inline BatchGetReportsResult& AddReportsNotFound(const char* value) { m_reportsNotFound.push_back(value); return *this; }
private:
Aws::Vector<Report> m_reports;
Aws::Vector<Aws::String> m_reportsNotFound;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,154 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Specifies restrictions for the batch build.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchRestrictions">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BatchRestrictions
{
public:
BatchRestrictions();
BatchRestrictions(Aws::Utils::Json::JsonView jsonValue);
BatchRestrictions& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the maximum number of builds allowed.</p>
*/
inline int GetMaximumBuildsAllowed() const{ return m_maximumBuildsAllowed; }
/**
* <p>Specifies the maximum number of builds allowed.</p>
*/
inline bool MaximumBuildsAllowedHasBeenSet() const { return m_maximumBuildsAllowedHasBeenSet; }
/**
* <p>Specifies the maximum number of builds allowed.</p>
*/
inline void SetMaximumBuildsAllowed(int value) { m_maximumBuildsAllowedHasBeenSet = true; m_maximumBuildsAllowed = value; }
/**
* <p>Specifies the maximum number of builds allowed.</p>
*/
inline BatchRestrictions& WithMaximumBuildsAllowed(int value) { SetMaximumBuildsAllowed(value); return *this;}
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline const Aws::Vector<Aws::String>& GetComputeTypesAllowed() const{ return m_computeTypesAllowed; }
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline bool ComputeTypesAllowedHasBeenSet() const { return m_computeTypesAllowedHasBeenSet; }
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline void SetComputeTypesAllowed(const Aws::Vector<Aws::String>& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed = value; }
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline void SetComputeTypesAllowed(Aws::Vector<Aws::String>&& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed = std::move(value); }
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline BatchRestrictions& WithComputeTypesAllowed(const Aws::Vector<Aws::String>& value) { SetComputeTypesAllowed(value); return *this;}
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline BatchRestrictions& WithComputeTypesAllowed(Aws::Vector<Aws::String>&& value) { SetComputeTypesAllowed(std::move(value)); return *this;}
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline BatchRestrictions& AddComputeTypesAllowed(const Aws::String& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(value); return *this; }
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline BatchRestrictions& AddComputeTypesAllowed(Aws::String&& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(std::move(value)); return *this; }
/**
* <p>An array of strings that specify the compute types that are allowed for the
* batch build. See <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build
* environment compute types</a> in the <i>AWS CodeBuild User Guide</i> for these
* values. </p>
*/
inline BatchRestrictions& AddComputeTypesAllowed(const char* value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(value); return *this; }
private:
int m_maximumBuildsAllowed;
bool m_maximumBuildsAllowedHasBeenSet;
Aws::Vector<Aws::String> m_computeTypesAllowed;
bool m_computeTypesAllowedHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,332 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Information about build output artifacts.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildArtifacts">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BuildArtifacts
{
public:
BuildArtifacts();
BuildArtifacts(Aws::Utils::Json::JsonView jsonValue);
BuildArtifacts& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline const Aws::String& GetLocation() const{ return m_location; }
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline BuildArtifacts& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline BuildArtifacts& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
/**
* <p>Information about the location of the build artifacts.</p>
*/
inline BuildArtifacts& WithLocation(const char* value) { SetLocation(value); return *this;}
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline const Aws::String& GetSha256sum() const{ return m_sha256sum; }
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline bool Sha256sumHasBeenSet() const { return m_sha256sumHasBeenSet; }
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline void SetSha256sum(const Aws::String& value) { m_sha256sumHasBeenSet = true; m_sha256sum = value; }
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline void SetSha256sum(Aws::String&& value) { m_sha256sumHasBeenSet = true; m_sha256sum = std::move(value); }
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline void SetSha256sum(const char* value) { m_sha256sumHasBeenSet = true; m_sha256sum.assign(value); }
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline BuildArtifacts& WithSha256sum(const Aws::String& value) { SetSha256sum(value); return *this;}
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline BuildArtifacts& WithSha256sum(Aws::String&& value) { SetSha256sum(std::move(value)); return *this;}
/**
* <p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along
* with a checksum tool to confirm file integrity and authenticity.</p>
* <p>This value is available only if the build project's <code>packaging</code>
* value is set to <code>ZIP</code>.</p>
*/
inline BuildArtifacts& WithSha256sum(const char* value) { SetSha256sum(value); return *this;}
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline const Aws::String& GetMd5sum() const{ return m_md5sum; }
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline bool Md5sumHasBeenSet() const { return m_md5sumHasBeenSet; }
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline void SetMd5sum(const Aws::String& value) { m_md5sumHasBeenSet = true; m_md5sum = value; }
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline void SetMd5sum(Aws::String&& value) { m_md5sumHasBeenSet = true; m_md5sum = std::move(value); }
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline void SetMd5sum(const char* value) { m_md5sumHasBeenSet = true; m_md5sum.assign(value); }
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline BuildArtifacts& WithMd5sum(const Aws::String& value) { SetMd5sum(value); return *this;}
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline BuildArtifacts& WithMd5sum(Aws::String&& value) { SetMd5sum(std::move(value)); return *this;}
/**
* <p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a
* checksum tool to confirm file integrity and authenticity.</p> <p>This
* value is available only if the build project's <code>packaging</code> value is
* set to <code>ZIP</code>.</p>
*/
inline BuildArtifacts& WithMd5sum(const char* value) { SetMd5sum(value); return *this;}
/**
* <p> If this flag is set, a name specified in the buildspec file overrides the
* artifact name. The name specified in a buildspec file is calculated at build
* time and uses the Shell Command Language. For example, you can append a date and
* time to your artifact name so that it is always unique. </p>
*/
inline bool GetOverrideArtifactName() const{ return m_overrideArtifactName; }
/**
* <p> If this flag is set, a name specified in the buildspec file overrides the
* artifact name. The name specified in a buildspec file is calculated at build
* time and uses the Shell Command Language. For example, you can append a date and
* time to your artifact name so that it is always unique. </p>
*/
inline bool OverrideArtifactNameHasBeenSet() const { return m_overrideArtifactNameHasBeenSet; }
/**
* <p> If this flag is set, a name specified in the buildspec file overrides the
* artifact name. The name specified in a buildspec file is calculated at build
* time and uses the Shell Command Language. For example, you can append a date and
* time to your artifact name so that it is always unique. </p>
*/
inline void SetOverrideArtifactName(bool value) { m_overrideArtifactNameHasBeenSet = true; m_overrideArtifactName = value; }
/**
* <p> If this flag is set, a name specified in the buildspec file overrides the
* artifact name. The name specified in a buildspec file is calculated at build
* time and uses the Shell Command Language. For example, you can append a date and
* time to your artifact name so that it is always unique. </p>
*/
inline BuildArtifacts& WithOverrideArtifactName(bool value) { SetOverrideArtifactName(value); return *this;}
/**
* <p> Information that tells you if encryption for build artifacts is disabled.
* </p>
*/
inline bool GetEncryptionDisabled() const{ return m_encryptionDisabled; }
/**
* <p> Information that tells you if encryption for build artifacts is disabled.
* </p>
*/
inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; }
/**
* <p> Information that tells you if encryption for build artifacts is disabled.
* </p>
*/
inline void SetEncryptionDisabled(bool value) { m_encryptionDisabledHasBeenSet = true; m_encryptionDisabled = value; }
/**
* <p> Information that tells you if encryption for build artifacts is disabled.
* </p>
*/
inline BuildArtifacts& WithEncryptionDisabled(bool value) { SetEncryptionDisabled(value); return *this;}
/**
* <p> An identifier for this artifact definition. </p>
*/
inline const Aws::String& GetArtifactIdentifier() const{ return m_artifactIdentifier; }
/**
* <p> An identifier for this artifact definition. </p>
*/
inline bool ArtifactIdentifierHasBeenSet() const { return m_artifactIdentifierHasBeenSet; }
/**
* <p> An identifier for this artifact definition. </p>
*/
inline void SetArtifactIdentifier(const Aws::String& value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier = value; }
/**
* <p> An identifier for this artifact definition. </p>
*/
inline void SetArtifactIdentifier(Aws::String&& value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier = std::move(value); }
/**
* <p> An identifier for this artifact definition. </p>
*/
inline void SetArtifactIdentifier(const char* value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier.assign(value); }
/**
* <p> An identifier for this artifact definition. </p>
*/
inline BuildArtifacts& WithArtifactIdentifier(const Aws::String& value) { SetArtifactIdentifier(value); return *this;}
/**
* <p> An identifier for this artifact definition. </p>
*/
inline BuildArtifacts& WithArtifactIdentifier(Aws::String&& value) { SetArtifactIdentifier(std::move(value)); return *this;}
/**
* <p> An identifier for this artifact definition. </p>
*/
inline BuildArtifacts& WithArtifactIdentifier(const char* value) { SetArtifactIdentifier(value); return *this;}
private:
Aws::String m_location;
bool m_locationHasBeenSet;
Aws::String m_sha256sum;
bool m_sha256sumHasBeenSet;
Aws::String m_md5sum;
bool m_md5sumHasBeenSet;
bool m_overrideArtifactName;
bool m_overrideArtifactNameHasBeenSet;
bool m_encryptionDisabled;
bool m_encryptionDisabledHasBeenSet;
Aws::String m_artifactIdentifier;
bool m_artifactIdentifierHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* 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/codebuild/model/StatusType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Specifies filters when retrieving batch builds.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildBatchFilter">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BuildBatchFilter
{
public:
BuildBatchFilter();
BuildBatchFilter(Aws::Utils::Json::JsonView jsonValue);
BuildBatchFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The status of the batch builds to retrieve. Only batch builds that have this
* status will be retrieved.</p>
*/
inline const StatusType& GetStatus() const{ return m_status; }
/**
* <p>The status of the batch builds to retrieve. Only batch builds that have this
* status will be retrieved.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the batch builds to retrieve. Only batch builds that have this
* status will be retrieved.</p>
*/
inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the batch builds to retrieve. Only batch builds that have this
* status will be retrieved.</p>
*/
inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the batch builds to retrieve. Only batch builds that have this
* status will be retrieved.</p>
*/
inline BuildBatchFilter& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
/**
* <p>The status of the batch builds to retrieve. Only batch builds that have this
* status will be retrieved.</p>
*/
inline BuildBatchFilter& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
private:
StatusType m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,355 @@
/**
* 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/codebuild/model/BuildBatchPhaseType.h>
#include <aws/codebuild/model/StatusType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codebuild/model/PhaseContext.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Contains information about a stage for a batch build.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildBatchPhase">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BuildBatchPhase
{
public:
BuildBatchPhase();
BuildBatchPhase(Aws::Utils::Json::JsonView jsonValue);
BuildBatchPhase& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the batch build phase. Valid values include:</p> <dl>
* <dt>COMBINE_ARTIFACTS</dt> <dd> <p>Build output artifacts are being combined and
* uploaded to the output location.</p> </dd> <dt>DOWNLOAD_BATCHSPEC</dt> <dd>
* <p>The batch build specification is being downloaded.</p> </dd> <dt>FAILED</dt>
* <dd> <p>One or more of the builds failed.</p> </dd> <dt>IN_PROGRESS</dt> <dd>
* <p>The batch build is in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The batch
* build was stopped.</p> </dd> <dt>SUBMITTED</dt> <dd> <p>The btach build has been
* submitted.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The batch build succeeded.</p>
* </dd> </dl>
*/
inline const BuildBatchPhaseType& GetPhaseType() const{ return m_phaseType; }
/**
* <p>The name of the batch build phase. Valid values include:</p> <dl>
* <dt>COMBINE_ARTIFACTS</dt> <dd> <p>Build output artifacts are being combined and
* uploaded to the output location.</p> </dd> <dt>DOWNLOAD_BATCHSPEC</dt> <dd>
* <p>The batch build specification is being downloaded.</p> </dd> <dt>FAILED</dt>
* <dd> <p>One or more of the builds failed.</p> </dd> <dt>IN_PROGRESS</dt> <dd>
* <p>The batch build is in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The batch
* build was stopped.</p> </dd> <dt>SUBMITTED</dt> <dd> <p>The btach build has been
* submitted.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The batch build succeeded.</p>
* </dd> </dl>
*/
inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
/**
* <p>The name of the batch build phase. Valid values include:</p> <dl>
* <dt>COMBINE_ARTIFACTS</dt> <dd> <p>Build output artifacts are being combined and
* uploaded to the output location.</p> </dd> <dt>DOWNLOAD_BATCHSPEC</dt> <dd>
* <p>The batch build specification is being downloaded.</p> </dd> <dt>FAILED</dt>
* <dd> <p>One or more of the builds failed.</p> </dd> <dt>IN_PROGRESS</dt> <dd>
* <p>The batch build is in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The batch
* build was stopped.</p> </dd> <dt>SUBMITTED</dt> <dd> <p>The btach build has been
* submitted.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The batch build succeeded.</p>
* </dd> </dl>
*/
inline void SetPhaseType(const BuildBatchPhaseType& value) { m_phaseTypeHasBeenSet = true; m_phaseType = value; }
/**
* <p>The name of the batch build phase. Valid values include:</p> <dl>
* <dt>COMBINE_ARTIFACTS</dt> <dd> <p>Build output artifacts are being combined and
* uploaded to the output location.</p> </dd> <dt>DOWNLOAD_BATCHSPEC</dt> <dd>
* <p>The batch build specification is being downloaded.</p> </dd> <dt>FAILED</dt>
* <dd> <p>One or more of the builds failed.</p> </dd> <dt>IN_PROGRESS</dt> <dd>
* <p>The batch build is in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The batch
* build was stopped.</p> </dd> <dt>SUBMITTED</dt> <dd> <p>The btach build has been
* submitted.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The batch build succeeded.</p>
* </dd> </dl>
*/
inline void SetPhaseType(BuildBatchPhaseType&& value) { m_phaseTypeHasBeenSet = true; m_phaseType = std::move(value); }
/**
* <p>The name of the batch build phase. Valid values include:</p> <dl>
* <dt>COMBINE_ARTIFACTS</dt> <dd> <p>Build output artifacts are being combined and
* uploaded to the output location.</p> </dd> <dt>DOWNLOAD_BATCHSPEC</dt> <dd>
* <p>The batch build specification is being downloaded.</p> </dd> <dt>FAILED</dt>
* <dd> <p>One or more of the builds failed.</p> </dd> <dt>IN_PROGRESS</dt> <dd>
* <p>The batch build is in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The batch
* build was stopped.</p> </dd> <dt>SUBMITTED</dt> <dd> <p>The btach build has been
* submitted.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The batch build succeeded.</p>
* </dd> </dl>
*/
inline BuildBatchPhase& WithPhaseType(const BuildBatchPhaseType& value) { SetPhaseType(value); return *this;}
/**
* <p>The name of the batch build phase. Valid values include:</p> <dl>
* <dt>COMBINE_ARTIFACTS</dt> <dd> <p>Build output artifacts are being combined and
* uploaded to the output location.</p> </dd> <dt>DOWNLOAD_BATCHSPEC</dt> <dd>
* <p>The batch build specification is being downloaded.</p> </dd> <dt>FAILED</dt>
* <dd> <p>One or more of the builds failed.</p> </dd> <dt>IN_PROGRESS</dt> <dd>
* <p>The batch build is in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The batch
* build was stopped.</p> </dd> <dt>SUBMITTED</dt> <dd> <p>The btach build has been
* submitted.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The batch build succeeded.</p>
* </dd> </dl>
*/
inline BuildBatchPhase& WithPhaseType(BuildBatchPhaseType&& value) { SetPhaseType(std::move(value)); return *this;}
/**
* <p>The current status of the batch build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline const StatusType& GetPhaseStatus() const{ return m_phaseStatus; }
/**
* <p>The current status of the batch build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
/**
* <p>The current status of the batch build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline void SetPhaseStatus(const StatusType& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = value; }
/**
* <p>The current status of the batch build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline void SetPhaseStatus(StatusType&& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = std::move(value); }
/**
* <p>The current status of the batch build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline BuildBatchPhase& WithPhaseStatus(const StatusType& value) { SetPhaseStatus(value); return *this;}
/**
* <p>The current status of the batch build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline BuildBatchPhase& WithPhaseStatus(StatusType&& value) { SetPhaseStatus(std::move(value)); return *this;}
/**
* <p>When the batch build phase started, expressed in Unix time format.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>When the batch build phase started, expressed in Unix time format.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>When the batch build phase started, expressed in Unix time format.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>When the batch build phase started, expressed in Unix time format.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>When the batch build phase started, expressed in Unix time format.</p>
*/
inline BuildBatchPhase& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>When the batch build phase started, expressed in Unix time format.</p>
*/
inline BuildBatchPhase& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>When the batch build phase ended, expressed in Unix time format.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>When the batch build phase ended, expressed in Unix time format.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>When the batch build phase ended, expressed in Unix time format.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>When the batch build phase ended, expressed in Unix time format.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>When the batch build phase ended, expressed in Unix time format.</p>
*/
inline BuildBatchPhase& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>When the batch build phase ended, expressed in Unix time format.</p>
*/
inline BuildBatchPhase& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>How long, in seconds, between the starting and ending times of the batch
* build's phase.</p>
*/
inline long long GetDurationInSeconds() const{ return m_durationInSeconds; }
/**
* <p>How long, in seconds, between the starting and ending times of the batch
* build's phase.</p>
*/
inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
/**
* <p>How long, in seconds, between the starting and ending times of the batch
* build's phase.</p>
*/
inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
/**
* <p>How long, in seconds, between the starting and ending times of the batch
* build's phase.</p>
*/
inline BuildBatchPhase& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline const Aws::Vector<PhaseContext>& GetContexts() const{ return m_contexts; }
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline void SetContexts(const Aws::Vector<PhaseContext>& value) { m_contextsHasBeenSet = true; m_contexts = value; }
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline void SetContexts(Aws::Vector<PhaseContext>&& value) { m_contextsHasBeenSet = true; m_contexts = std::move(value); }
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline BuildBatchPhase& WithContexts(const Aws::Vector<PhaseContext>& value) { SetContexts(value); return *this;}
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline BuildBatchPhase& WithContexts(Aws::Vector<PhaseContext>&& value) { SetContexts(std::move(value)); return *this;}
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline BuildBatchPhase& AddContexts(const PhaseContext& value) { m_contextsHasBeenSet = true; m_contexts.push_back(value); return *this; }
/**
* <p>Additional information about the batch build phase. Especially to help
* troubleshoot a failed btach build.</p>
*/
inline BuildBatchPhase& AddContexts(PhaseContext&& value) { m_contextsHasBeenSet = true; m_contexts.push_back(std::move(value)); return *this; }
private:
BuildBatchPhaseType m_phaseType;
bool m_phaseTypeHasBeenSet;
StatusType m_phaseStatus;
bool m_phaseStatusHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
long long m_durationInSeconds;
bool m_durationInSecondsHasBeenSet;
Aws::Vector<PhaseContext> m_contexts;
bool m_contextsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class BuildBatchPhaseType
{
NOT_SET,
SUBMITTED,
DOWNLOAD_BATCHSPEC,
IN_PROGRESS,
COMBINE_ARTIFACTS,
SUCCEEDED,
FAILED,
STOPPED
};
namespace BuildBatchPhaseTypeMapper
{
AWS_CODEBUILD_API BuildBatchPhaseType GetBuildBatchPhaseTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForBuildBatchPhaseType(BuildBatchPhaseType value);
} // namespace BuildBatchPhaseTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,266 @@
/**
* 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/memory/stl/AWSVector.h>
#include <aws/codebuild/model/BuildSummary.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Contains information about a batch build build group. Build groups are used
* to combine builds that can run in parallel, while still being able to set
* dependencies on other build groups.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildGroup">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BuildGroup
{
public:
BuildGroup();
BuildGroup(Aws::Utils::Json::JsonView jsonValue);
BuildGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Contains the identifier of the build group.</p>
*/
inline const Aws::String& GetIdentifier() const{ return m_identifier; }
/**
* <p>Contains the identifier of the build group.</p>
*/
inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
/**
* <p>Contains the identifier of the build group.</p>
*/
inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
/**
* <p>Contains the identifier of the build group.</p>
*/
inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
/**
* <p>Contains the identifier of the build group.</p>
*/
inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
/**
* <p>Contains the identifier of the build group.</p>
*/
inline BuildGroup& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
/**
* <p>Contains the identifier of the build group.</p>
*/
inline BuildGroup& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
/**
* <p>Contains the identifier of the build group.</p>
*/
inline BuildGroup& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline const Aws::Vector<Aws::String>& GetDependsOn() const{ return m_dependsOn; }
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline void SetDependsOn(const Aws::Vector<Aws::String>& value) { m_dependsOnHasBeenSet = true; m_dependsOn = value; }
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline void SetDependsOn(Aws::Vector<Aws::String>&& value) { m_dependsOnHasBeenSet = true; m_dependsOn = std::move(value); }
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline BuildGroup& WithDependsOn(const Aws::Vector<Aws::String>& value) { SetDependsOn(value); return *this;}
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline BuildGroup& WithDependsOn(Aws::Vector<Aws::String>&& value) { SetDependsOn(std::move(value)); return *this;}
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline BuildGroup& AddDependsOn(const Aws::String& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; }
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline BuildGroup& AddDependsOn(Aws::String&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(std::move(value)); return *this; }
/**
* <p>An array of strings that contain the identifiers of the build groups that
* this build group depends on.</p>
*/
inline BuildGroup& AddDependsOn(const char* value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; }
/**
* <p>Specifies if failures in this build group can be ignored.</p>
*/
inline bool GetIgnoreFailure() const{ return m_ignoreFailure; }
/**
* <p>Specifies if failures in this build group can be ignored.</p>
*/
inline bool IgnoreFailureHasBeenSet() const { return m_ignoreFailureHasBeenSet; }
/**
* <p>Specifies if failures in this build group can be ignored.</p>
*/
inline void SetIgnoreFailure(bool value) { m_ignoreFailureHasBeenSet = true; m_ignoreFailure = value; }
/**
* <p>Specifies if failures in this build group can be ignored.</p>
*/
inline BuildGroup& WithIgnoreFailure(bool value) { SetIgnoreFailure(value); return *this;}
/**
* <p>A <code>BuildSummary</code> object that contains a summary of the current
* build group.</p>
*/
inline const BuildSummary& GetCurrentBuildSummary() const{ return m_currentBuildSummary; }
/**
* <p>A <code>BuildSummary</code> object that contains a summary of the current
* build group.</p>
*/
inline bool CurrentBuildSummaryHasBeenSet() const { return m_currentBuildSummaryHasBeenSet; }
/**
* <p>A <code>BuildSummary</code> object that contains a summary of the current
* build group.</p>
*/
inline void SetCurrentBuildSummary(const BuildSummary& value) { m_currentBuildSummaryHasBeenSet = true; m_currentBuildSummary = value; }
/**
* <p>A <code>BuildSummary</code> object that contains a summary of the current
* build group.</p>
*/
inline void SetCurrentBuildSummary(BuildSummary&& value) { m_currentBuildSummaryHasBeenSet = true; m_currentBuildSummary = std::move(value); }
/**
* <p>A <code>BuildSummary</code> object that contains a summary of the current
* build group.</p>
*/
inline BuildGroup& WithCurrentBuildSummary(const BuildSummary& value) { SetCurrentBuildSummary(value); return *this;}
/**
* <p>A <code>BuildSummary</code> object that contains a summary of the current
* build group.</p>
*/
inline BuildGroup& WithCurrentBuildSummary(BuildSummary&& value) { SetCurrentBuildSummary(std::move(value)); return *this;}
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline const Aws::Vector<BuildSummary>& GetPriorBuildSummaryList() const{ return m_priorBuildSummaryList; }
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline bool PriorBuildSummaryListHasBeenSet() const { return m_priorBuildSummaryListHasBeenSet; }
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline void SetPriorBuildSummaryList(const Aws::Vector<BuildSummary>& value) { m_priorBuildSummaryListHasBeenSet = true; m_priorBuildSummaryList = value; }
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline void SetPriorBuildSummaryList(Aws::Vector<BuildSummary>&& value) { m_priorBuildSummaryListHasBeenSet = true; m_priorBuildSummaryList = std::move(value); }
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline BuildGroup& WithPriorBuildSummaryList(const Aws::Vector<BuildSummary>& value) { SetPriorBuildSummaryList(value); return *this;}
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline BuildGroup& WithPriorBuildSummaryList(Aws::Vector<BuildSummary>&& value) { SetPriorBuildSummaryList(std::move(value)); return *this;}
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline BuildGroup& AddPriorBuildSummaryList(const BuildSummary& value) { m_priorBuildSummaryListHasBeenSet = true; m_priorBuildSummaryList.push_back(value); return *this; }
/**
* <p>An array of <code>BuildSummary</code> objects that contain summaries of
* previous build groups.</p>
*/
inline BuildGroup& AddPriorBuildSummaryList(BuildSummary&& value) { m_priorBuildSummaryListHasBeenSet = true; m_priorBuildSummaryList.push_back(std::move(value)); return *this; }
private:
Aws::String m_identifier;
bool m_identifierHasBeenSet;
Aws::Vector<Aws::String> m_dependsOn;
bool m_dependsOnHasBeenSet;
bool m_ignoreFailure;
bool m_ignoreFailureHasBeenSet;
BuildSummary m_currentBuildSummary;
bool m_currentBuildSummaryHasBeenSet;
Aws::Vector<BuildSummary> m_priorBuildSummaryList;
bool m_priorBuildSummaryListHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Information about a build that could not be successfully
* deleted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildNotDeleted">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BuildNotDeleted
{
public:
BuildNotDeleted();
BuildNotDeleted(Aws::Utils::Json::JsonView jsonValue);
BuildNotDeleted& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline BuildNotDeleted& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline BuildNotDeleted& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the build that could not be successfully deleted.</p>
*/
inline BuildNotDeleted& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline BuildNotDeleted& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline BuildNotDeleted& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* <p>Additional information about the build that could not be successfully
* deleted.</p>
*/
inline BuildNotDeleted& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_statusCode;
bool m_statusCodeHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,390 @@
/**
* 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/codebuild/model/BuildPhaseType.h>
#include <aws/codebuild/model/StatusType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codebuild/model/PhaseContext.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Information about a stage for a build.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildPhase">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BuildPhase
{
public:
BuildPhase();
BuildPhase(Aws::Utils::Json::JsonView jsonValue);
BuildPhase& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the build phase. Valid values include:</p> <ul> <li> <p>
* <code>BUILD</code>: Core build activities typically occur in this build
* phase.</p> </li> <li> <p> <code>COMPLETED</code>: The build has been
* completed.</p> </li> <li> <p> <code>DOWNLOAD_SOURCE</code>: Source code is being
* downloaded in this build phase.</p> </li> <li> <p> <code>FINALIZING</code>: The
* build process is completing in this build phase.</p> </li> <li> <p>
* <code>INSTALL</code>: Installation activities typically occur in this build
* phase.</p> </li> <li> <p> <code>POST_BUILD</code>: Post-build activities
* typically occur in this build phase.</p> </li> <li> <p> <code>PRE_BUILD</code>:
* Pre-build activities typically occur in this build phase.</p> </li> <li> <p>
* <code>PROVISIONING</code>: The build environment is being set up.</p> </li> <li>
* <p> <code>QUEUED</code>: The build has been submitted and is queued behind other
* submitted builds.</p> </li> <li> <p> <code>SUBMITTED</code>: The build has been
* submitted.</p> </li> <li> <p> <code>UPLOAD_ARTIFACTS</code>: Build output
* artifacts are being uploaded to the output location.</p> </li> </ul>
*/
inline const BuildPhaseType& GetPhaseType() const{ return m_phaseType; }
/**
* <p>The name of the build phase. Valid values include:</p> <ul> <li> <p>
* <code>BUILD</code>: Core build activities typically occur in this build
* phase.</p> </li> <li> <p> <code>COMPLETED</code>: The build has been
* completed.</p> </li> <li> <p> <code>DOWNLOAD_SOURCE</code>: Source code is being
* downloaded in this build phase.</p> </li> <li> <p> <code>FINALIZING</code>: The
* build process is completing in this build phase.</p> </li> <li> <p>
* <code>INSTALL</code>: Installation activities typically occur in this build
* phase.</p> </li> <li> <p> <code>POST_BUILD</code>: Post-build activities
* typically occur in this build phase.</p> </li> <li> <p> <code>PRE_BUILD</code>:
* Pre-build activities typically occur in this build phase.</p> </li> <li> <p>
* <code>PROVISIONING</code>: The build environment is being set up.</p> </li> <li>
* <p> <code>QUEUED</code>: The build has been submitted and is queued behind other
* submitted builds.</p> </li> <li> <p> <code>SUBMITTED</code>: The build has been
* submitted.</p> </li> <li> <p> <code>UPLOAD_ARTIFACTS</code>: Build output
* artifacts are being uploaded to the output location.</p> </li> </ul>
*/
inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
/**
* <p>The name of the build phase. Valid values include:</p> <ul> <li> <p>
* <code>BUILD</code>: Core build activities typically occur in this build
* phase.</p> </li> <li> <p> <code>COMPLETED</code>: The build has been
* completed.</p> </li> <li> <p> <code>DOWNLOAD_SOURCE</code>: Source code is being
* downloaded in this build phase.</p> </li> <li> <p> <code>FINALIZING</code>: The
* build process is completing in this build phase.</p> </li> <li> <p>
* <code>INSTALL</code>: Installation activities typically occur in this build
* phase.</p> </li> <li> <p> <code>POST_BUILD</code>: Post-build activities
* typically occur in this build phase.</p> </li> <li> <p> <code>PRE_BUILD</code>:
* Pre-build activities typically occur in this build phase.</p> </li> <li> <p>
* <code>PROVISIONING</code>: The build environment is being set up.</p> </li> <li>
* <p> <code>QUEUED</code>: The build has been submitted and is queued behind other
* submitted builds.</p> </li> <li> <p> <code>SUBMITTED</code>: The build has been
* submitted.</p> </li> <li> <p> <code>UPLOAD_ARTIFACTS</code>: Build output
* artifacts are being uploaded to the output location.</p> </li> </ul>
*/
inline void SetPhaseType(const BuildPhaseType& value) { m_phaseTypeHasBeenSet = true; m_phaseType = value; }
/**
* <p>The name of the build phase. Valid values include:</p> <ul> <li> <p>
* <code>BUILD</code>: Core build activities typically occur in this build
* phase.</p> </li> <li> <p> <code>COMPLETED</code>: The build has been
* completed.</p> </li> <li> <p> <code>DOWNLOAD_SOURCE</code>: Source code is being
* downloaded in this build phase.</p> </li> <li> <p> <code>FINALIZING</code>: The
* build process is completing in this build phase.</p> </li> <li> <p>
* <code>INSTALL</code>: Installation activities typically occur in this build
* phase.</p> </li> <li> <p> <code>POST_BUILD</code>: Post-build activities
* typically occur in this build phase.</p> </li> <li> <p> <code>PRE_BUILD</code>:
* Pre-build activities typically occur in this build phase.</p> </li> <li> <p>
* <code>PROVISIONING</code>: The build environment is being set up.</p> </li> <li>
* <p> <code>QUEUED</code>: The build has been submitted and is queued behind other
* submitted builds.</p> </li> <li> <p> <code>SUBMITTED</code>: The build has been
* submitted.</p> </li> <li> <p> <code>UPLOAD_ARTIFACTS</code>: Build output
* artifacts are being uploaded to the output location.</p> </li> </ul>
*/
inline void SetPhaseType(BuildPhaseType&& value) { m_phaseTypeHasBeenSet = true; m_phaseType = std::move(value); }
/**
* <p>The name of the build phase. Valid values include:</p> <ul> <li> <p>
* <code>BUILD</code>: Core build activities typically occur in this build
* phase.</p> </li> <li> <p> <code>COMPLETED</code>: The build has been
* completed.</p> </li> <li> <p> <code>DOWNLOAD_SOURCE</code>: Source code is being
* downloaded in this build phase.</p> </li> <li> <p> <code>FINALIZING</code>: The
* build process is completing in this build phase.</p> </li> <li> <p>
* <code>INSTALL</code>: Installation activities typically occur in this build
* phase.</p> </li> <li> <p> <code>POST_BUILD</code>: Post-build activities
* typically occur in this build phase.</p> </li> <li> <p> <code>PRE_BUILD</code>:
* Pre-build activities typically occur in this build phase.</p> </li> <li> <p>
* <code>PROVISIONING</code>: The build environment is being set up.</p> </li> <li>
* <p> <code>QUEUED</code>: The build has been submitted and is queued behind other
* submitted builds.</p> </li> <li> <p> <code>SUBMITTED</code>: The build has been
* submitted.</p> </li> <li> <p> <code>UPLOAD_ARTIFACTS</code>: Build output
* artifacts are being uploaded to the output location.</p> </li> </ul>
*/
inline BuildPhase& WithPhaseType(const BuildPhaseType& value) { SetPhaseType(value); return *this;}
/**
* <p>The name of the build phase. Valid values include:</p> <ul> <li> <p>
* <code>BUILD</code>: Core build activities typically occur in this build
* phase.</p> </li> <li> <p> <code>COMPLETED</code>: The build has been
* completed.</p> </li> <li> <p> <code>DOWNLOAD_SOURCE</code>: Source code is being
* downloaded in this build phase.</p> </li> <li> <p> <code>FINALIZING</code>: The
* build process is completing in this build phase.</p> </li> <li> <p>
* <code>INSTALL</code>: Installation activities typically occur in this build
* phase.</p> </li> <li> <p> <code>POST_BUILD</code>: Post-build activities
* typically occur in this build phase.</p> </li> <li> <p> <code>PRE_BUILD</code>:
* Pre-build activities typically occur in this build phase.</p> </li> <li> <p>
* <code>PROVISIONING</code>: The build environment is being set up.</p> </li> <li>
* <p> <code>QUEUED</code>: The build has been submitted and is queued behind other
* submitted builds.</p> </li> <li> <p> <code>SUBMITTED</code>: The build has been
* submitted.</p> </li> <li> <p> <code>UPLOAD_ARTIFACTS</code>: Build output
* artifacts are being uploaded to the output location.</p> </li> </ul>
*/
inline BuildPhase& WithPhaseType(BuildPhaseType&& value) { SetPhaseType(std::move(value)); return *this;}
/**
* <p>The current status of the build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline const StatusType& GetPhaseStatus() const{ return m_phaseStatus; }
/**
* <p>The current status of the build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
/**
* <p>The current status of the build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline void SetPhaseStatus(const StatusType& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = value; }
/**
* <p>The current status of the build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline void SetPhaseStatus(StatusType&& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = std::move(value); }
/**
* <p>The current status of the build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline BuildPhase& WithPhaseStatus(const StatusType& value) { SetPhaseStatus(value); return *this;}
/**
* <p>The current status of the build phase. Valid values include:</p> <dl>
* <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd>
* <p>The build phase faulted.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The build
* phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been
* submitted and is queued behind other submitted builds.</p> </dd>
* <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt>
* <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED_OUT</dt> <dd> <p>The
* build phase timed out.</p> </dd> </dl>
*/
inline BuildPhase& WithPhaseStatus(StatusType&& value) { SetPhaseStatus(std::move(value)); return *this;}
/**
* <p>When the build phase started, expressed in Unix time format.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>When the build phase started, expressed in Unix time format.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>When the build phase started, expressed in Unix time format.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>When the build phase started, expressed in Unix time format.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>When the build phase started, expressed in Unix time format.</p>
*/
inline BuildPhase& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>When the build phase started, expressed in Unix time format.</p>
*/
inline BuildPhase& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>When the build phase ended, expressed in Unix time format.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>When the build phase ended, expressed in Unix time format.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>When the build phase ended, expressed in Unix time format.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>When the build phase ended, expressed in Unix time format.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>When the build phase ended, expressed in Unix time format.</p>
*/
inline BuildPhase& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>When the build phase ended, expressed in Unix time format.</p>
*/
inline BuildPhase& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>How long, in seconds, between the starting and ending times of the build's
* phase.</p>
*/
inline long long GetDurationInSeconds() const{ return m_durationInSeconds; }
/**
* <p>How long, in seconds, between the starting and ending times of the build's
* phase.</p>
*/
inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
/**
* <p>How long, in seconds, between the starting and ending times of the build's
* phase.</p>
*/
inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
/**
* <p>How long, in seconds, between the starting and ending times of the build's
* phase.</p>
*/
inline BuildPhase& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline const Aws::Vector<PhaseContext>& GetContexts() const{ return m_contexts; }
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline void SetContexts(const Aws::Vector<PhaseContext>& value) { m_contextsHasBeenSet = true; m_contexts = value; }
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline void SetContexts(Aws::Vector<PhaseContext>&& value) { m_contextsHasBeenSet = true; m_contexts = std::move(value); }
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline BuildPhase& WithContexts(const Aws::Vector<PhaseContext>& value) { SetContexts(value); return *this;}
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline BuildPhase& WithContexts(Aws::Vector<PhaseContext>&& value) { SetContexts(std::move(value)); return *this;}
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline BuildPhase& AddContexts(const PhaseContext& value) { m_contextsHasBeenSet = true; m_contexts.push_back(value); return *this; }
/**
* <p>Additional information about a build phase, especially to help troubleshoot a
* failed build.</p>
*/
inline BuildPhase& AddContexts(PhaseContext&& value) { m_contextsHasBeenSet = true; m_contexts.push_back(std::move(value)); return *this; }
private:
BuildPhaseType m_phaseType;
bool m_phaseTypeHasBeenSet;
StatusType m_phaseStatus;
bool m_phaseStatusHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
long long m_durationInSeconds;
bool m_durationInSecondsHasBeenSet;
Aws::Vector<PhaseContext> m_contexts;
bool m_contextsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,40 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class BuildPhaseType
{
NOT_SET,
SUBMITTED,
QUEUED,
PROVISIONING,
DOWNLOAD_SOURCE,
INSTALL,
PRE_BUILD,
BUILD,
POST_BUILD,
UPLOAD_ARTIFACTS,
FINALIZING,
COMPLETED
};
namespace BuildPhaseTypeMapper
{
AWS_CODEBUILD_API BuildPhaseType GetBuildPhaseTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForBuildPhaseType(BuildPhaseType value);
} // namespace BuildPhaseTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,277 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Contains information that defines how the AWS CodeBuild build project reports
* the build status to the source provider. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildStatusConfig">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API BuildStatusConfig
{
public:
BuildStatusConfig();
BuildStatusConfig(Aws::Utils::Json::JsonView jsonValue);
BuildStatusConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline const Aws::String& GetContext() const{ return m_context; }
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline BuildStatusConfig& WithContext(const Aws::String& value) { SetContext(value); return *this;}
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline BuildStatusConfig& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
/**
* <p>Specifies the context of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>context</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline BuildStatusConfig& WithContext(const char* value) { SetContext(value); return *this;}
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline const Aws::String& GetTargetUrl() const{ return m_targetUrl; }
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline bool TargetUrlHasBeenSet() const { return m_targetUrlHasBeenSet; }
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline void SetTargetUrl(const Aws::String& value) { m_targetUrlHasBeenSet = true; m_targetUrl = value; }
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline void SetTargetUrl(Aws::String&& value) { m_targetUrlHasBeenSet = true; m_targetUrl = std::move(value); }
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline void SetTargetUrl(const char* value) { m_targetUrlHasBeenSet = true; m_targetUrl.assign(value); }
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline BuildStatusConfig& WithTargetUrl(const Aws::String& value) { SetTargetUrl(value); return *this;}
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline BuildStatusConfig& WithTargetUrl(Aws::String&& value) { SetTargetUrl(std::move(value)); return *this;}
/**
* <p>Specifies the target url of the build status CodeBuild sends to the source
* provider. The usage of this parameter depends on the source provider.</p> <dl>
* <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code>
* parameter in the Bitbucket commit status. For more information, see <a
* href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a>
* in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise
* Server</dt> <dd> <p>This parameter is used for the <code>target_url</code>
* parameter in the GitHub commit status. For more information, see <a
* href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create
* a commit status</a> in the GitHub developer guide.</p> </dd> </dl>
*/
inline BuildStatusConfig& WithTargetUrl(const char* value) { SetTargetUrl(value); return *this;}
private:
Aws::String m_context;
bool m_contextHasBeenSet;
Aws::String m_targetUrl;
bool m_targetUrlHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,283 @@
/**
* 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

View File

@@ -0,0 +1,32 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class CacheMode
{
NOT_SET,
LOCAL_DOCKER_LAYER_CACHE,
LOCAL_SOURCE_CACHE,
LOCAL_CUSTOM_CACHE
};
namespace CacheModeMapper
{
AWS_CODEBUILD_API CacheMode GetCacheModeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForCacheMode(CacheMode value);
} // namespace CacheModeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class CacheType
{
NOT_SET,
NO_CACHE,
S3,
LOCAL
};
namespace CacheTypeMapper
{
AWS_CODEBUILD_API CacheType GetCacheTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForCacheType(CacheType value);
} // namespace CacheTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* 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/codebuild/model/LogsConfigStatusType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p> Information about Amazon CloudWatch Logs for a build project. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CloudWatchLogsConfig">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API CloudWatchLogsConfig
{
public:
CloudWatchLogsConfig();
CloudWatchLogsConfig(Aws::Utils::Json::JsonView jsonValue);
CloudWatchLogsConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The current status of the logs in Amazon CloudWatch Logs for a build project.
* Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: Amazon CloudWatch Logs
* are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>:
* Amazon CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
*/
inline const LogsConfigStatusType& GetStatus() const{ return m_status; }
/**
* <p>The current status of the logs in Amazon CloudWatch Logs for a build project.
* Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: Amazon CloudWatch Logs
* are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>:
* Amazon CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The current status of the logs in Amazon CloudWatch Logs for a build project.
* Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: Amazon CloudWatch Logs
* are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>:
* Amazon CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
*/
inline void SetStatus(const LogsConfigStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The current status of the logs in Amazon CloudWatch Logs for a build project.
* Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: Amazon CloudWatch Logs
* are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>:
* Amazon CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
*/
inline void SetStatus(LogsConfigStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The current status of the logs in Amazon CloudWatch Logs for a build project.
* Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: Amazon CloudWatch Logs
* are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>:
* Amazon CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
*/
inline CloudWatchLogsConfig& WithStatus(const LogsConfigStatusType& value) { SetStatus(value); return *this;}
/**
* <p>The current status of the logs in Amazon CloudWatch Logs for a build project.
* Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: Amazon CloudWatch Logs
* are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>:
* Amazon CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
*/
inline CloudWatchLogsConfig& WithStatus(LogsConfigStatusType&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline CloudWatchLogsConfig& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline CloudWatchLogsConfig& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p> The group name of the logs in Amazon CloudWatch Logs. For more information,
* see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline CloudWatchLogsConfig& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline const Aws::String& GetStreamName() const{ return m_streamName; }
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline CloudWatchLogsConfig& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline CloudWatchLogsConfig& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
/**
* <p> The prefix of the stream name of the Amazon CloudWatch Logs. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working
* with Log Groups and Log Streams</a>. </p>
*/
inline CloudWatchLogsConfig& WithStreamName(const char* value) { SetStreamName(value); return *this;}
private:
LogsConfigStatusType m_status;
bool m_statusHasBeenSet;
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_streamName;
bool m_streamNameHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,359 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Contains code coverage report information.</p> <p>Line coverage measures how
* many statements your tests cover. A statement is a single instruction, not
* including comments, conditionals, etc.</p> <p>Branch coverage determines if your
* tests cover every possible branch of a control structure, such as an
* <code>if</code> or <code>case</code> statement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CodeCoverage">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API CodeCoverage
{
public:
CodeCoverage();
CodeCoverage(Aws::Utils::Json::JsonView jsonValue);
CodeCoverage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier of the code coverage report.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline CodeCoverage& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The identifier of the code coverage report.</p>
*/
inline CodeCoverage& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The identifier of the code coverage report.</p>
*/
inline CodeCoverage& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The ARN of the report.</p>
*/
inline const Aws::String& GetReportARN() const{ return m_reportARN; }
/**
* <p>The ARN of the report.</p>
*/
inline bool ReportARNHasBeenSet() const { return m_reportARNHasBeenSet; }
/**
* <p>The ARN of the report.</p>
*/
inline void SetReportARN(const Aws::String& value) { m_reportARNHasBeenSet = true; m_reportARN = value; }
/**
* <p>The ARN of the report.</p>
*/
inline void SetReportARN(Aws::String&& value) { m_reportARNHasBeenSet = true; m_reportARN = std::move(value); }
/**
* <p>The ARN of the report.</p>
*/
inline void SetReportARN(const char* value) { m_reportARNHasBeenSet = true; m_reportARN.assign(value); }
/**
* <p>The ARN of the report.</p>
*/
inline CodeCoverage& WithReportARN(const Aws::String& value) { SetReportARN(value); return *this;}
/**
* <p>The ARN of the report.</p>
*/
inline CodeCoverage& WithReportARN(Aws::String&& value) { SetReportARN(std::move(value)); return *this;}
/**
* <p>The ARN of the report.</p>
*/
inline CodeCoverage& WithReportARN(const char* value) { SetReportARN(value); return *this;}
/**
* <p>The path of the test report file.</p>
*/
inline const Aws::String& GetFilePath() const{ return m_filePath; }
/**
* <p>The path of the test report file.</p>
*/
inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
/**
* <p>The path of the test report file.</p>
*/
inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
/**
* <p>The path of the test report file.</p>
*/
inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
/**
* <p>The path of the test report file.</p>
*/
inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
/**
* <p>The path of the test report file.</p>
*/
inline CodeCoverage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
/**
* <p>The path of the test report file.</p>
*/
inline CodeCoverage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
/**
* <p>The path of the test report file.</p>
*/
inline CodeCoverage& WithFilePath(const char* value) { SetFilePath(value); return *this;}
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline double GetLineCoveragePercentage() const{ return m_lineCoveragePercentage; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline bool LineCoveragePercentageHasBeenSet() const { return m_lineCoveragePercentageHasBeenSet; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline void SetLineCoveragePercentage(double value) { m_lineCoveragePercentageHasBeenSet = true; m_lineCoveragePercentage = value; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline CodeCoverage& WithLineCoveragePercentage(double value) { SetLineCoveragePercentage(value); return *this;}
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline int GetLinesCovered() const{ return m_linesCovered; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline bool LinesCoveredHasBeenSet() const { return m_linesCoveredHasBeenSet; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline void SetLinesCovered(int value) { m_linesCoveredHasBeenSet = true; m_linesCovered = value; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline CodeCoverage& WithLinesCovered(int value) { SetLinesCovered(value); return *this;}
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline int GetLinesMissed() const{ return m_linesMissed; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline bool LinesMissedHasBeenSet() const { return m_linesMissedHasBeenSet; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline void SetLinesMissed(int value) { m_linesMissedHasBeenSet = true; m_linesMissed = value; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline CodeCoverage& WithLinesMissed(int value) { SetLinesMissed(value); return *this;}
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline double GetBranchCoveragePercentage() const{ return m_branchCoveragePercentage; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline bool BranchCoveragePercentageHasBeenSet() const { return m_branchCoveragePercentageHasBeenSet; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline void SetBranchCoveragePercentage(double value) { m_branchCoveragePercentageHasBeenSet = true; m_branchCoveragePercentage = value; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline CodeCoverage& WithBranchCoveragePercentage(double value) { SetBranchCoveragePercentage(value); return *this;}
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline int GetBranchesCovered() const{ return m_branchesCovered; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline bool BranchesCoveredHasBeenSet() const { return m_branchesCoveredHasBeenSet; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline void SetBranchesCovered(int value) { m_branchesCoveredHasBeenSet = true; m_branchesCovered = value; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline CodeCoverage& WithBranchesCovered(int value) { SetBranchesCovered(value); return *this;}
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline int GetBranchesMissed() const{ return m_branchesMissed; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline bool BranchesMissedHasBeenSet() const { return m_branchesMissedHasBeenSet; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline void SetBranchesMissed(int value) { m_branchesMissedHasBeenSet = true; m_branchesMissed = value; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline CodeCoverage& WithBranchesMissed(int value) { SetBranchesMissed(value); return *this;}
/**
* <p>The date and time that the tests were run.</p>
*/
inline const Aws::Utils::DateTime& GetExpired() const{ return m_expired; }
/**
* <p>The date and time that the tests were run.</p>
*/
inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
/**
* <p>The date and time that the tests were run.</p>
*/
inline void SetExpired(const Aws::Utils::DateTime& value) { m_expiredHasBeenSet = true; m_expired = value; }
/**
* <p>The date and time that the tests were run.</p>
*/
inline void SetExpired(Aws::Utils::DateTime&& value) { m_expiredHasBeenSet = true; m_expired = std::move(value); }
/**
* <p>The date and time that the tests were run.</p>
*/
inline CodeCoverage& WithExpired(const Aws::Utils::DateTime& value) { SetExpired(value); return *this;}
/**
* <p>The date and time that the tests were run.</p>
*/
inline CodeCoverage& WithExpired(Aws::Utils::DateTime&& value) { SetExpired(std::move(value)); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_reportARN;
bool m_reportARNHasBeenSet;
Aws::String m_filePath;
bool m_filePathHasBeenSet;
double m_lineCoveragePercentage;
bool m_lineCoveragePercentageHasBeenSet;
int m_linesCovered;
bool m_linesCoveredHasBeenSet;
int m_linesMissed;
bool m_linesMissedHasBeenSet;
double m_branchCoveragePercentage;
bool m_branchCoveragePercentageHasBeenSet;
int m_branchesCovered;
bool m_branchesCoveredHasBeenSet;
int m_branchesMissed;
bool m_branchesMissedHasBeenSet;
Aws::Utils::DateTime m_expired;
bool m_expiredHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,190 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Contains a summary of a code coverage report.</p> <p>Line coverage measures
* how many statements your tests cover. A statement is a single instruction, not
* including comments, conditionals, etc.</p> <p>Branch coverage determines if your
* tests cover every possible branch of a control structure, such as an
* <code>if</code> or <code>case</code> statement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CodeCoverageReportSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API CodeCoverageReportSummary
{
public:
CodeCoverageReportSummary();
CodeCoverageReportSummary(Aws::Utils::Json::JsonView jsonValue);
CodeCoverageReportSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline double GetLineCoveragePercentage() const{ return m_lineCoveragePercentage; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline bool LineCoveragePercentageHasBeenSet() const { return m_lineCoveragePercentageHasBeenSet; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline void SetLineCoveragePercentage(double value) { m_lineCoveragePercentageHasBeenSet = true; m_lineCoveragePercentage = value; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline CodeCoverageReportSummary& WithLineCoveragePercentage(double value) { SetLineCoveragePercentage(value); return *this;}
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline int GetLinesCovered() const{ return m_linesCovered; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline bool LinesCoveredHasBeenSet() const { return m_linesCoveredHasBeenSet; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline void SetLinesCovered(int value) { m_linesCoveredHasBeenSet = true; m_linesCovered = value; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline CodeCoverageReportSummary& WithLinesCovered(int value) { SetLinesCovered(value); return *this;}
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline int GetLinesMissed() const{ return m_linesMissed; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline bool LinesMissedHasBeenSet() const { return m_linesMissedHasBeenSet; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline void SetLinesMissed(int value) { m_linesMissedHasBeenSet = true; m_linesMissed = value; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline CodeCoverageReportSummary& WithLinesMissed(int value) { SetLinesMissed(value); return *this;}
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline double GetBranchCoveragePercentage() const{ return m_branchCoveragePercentage; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline bool BranchCoveragePercentageHasBeenSet() const { return m_branchCoveragePercentageHasBeenSet; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline void SetBranchCoveragePercentage(double value) { m_branchCoveragePercentageHasBeenSet = true; m_branchCoveragePercentage = value; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline CodeCoverageReportSummary& WithBranchCoveragePercentage(double value) { SetBranchCoveragePercentage(value); return *this;}
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline int GetBranchesCovered() const{ return m_branchesCovered; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline bool BranchesCoveredHasBeenSet() const { return m_branchesCoveredHasBeenSet; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline void SetBranchesCovered(int value) { m_branchesCoveredHasBeenSet = true; m_branchesCovered = value; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline CodeCoverageReportSummary& WithBranchesCovered(int value) { SetBranchesCovered(value); return *this;}
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline int GetBranchesMissed() const{ return m_branchesMissed; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline bool BranchesMissedHasBeenSet() const { return m_branchesMissedHasBeenSet; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline void SetBranchesMissed(int value) { m_branchesMissedHasBeenSet = true; m_branchesMissed = value; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline CodeCoverageReportSummary& WithBranchesMissed(int value) { SetBranchesMissed(value); return *this;}
private:
double m_lineCoveragePercentage;
bool m_lineCoveragePercentageHasBeenSet;
int m_linesCovered;
bool m_linesCoveredHasBeenSet;
int m_linesMissed;
bool m_linesMissedHasBeenSet;
double m_branchCoveragePercentage;
bool m_branchCoveragePercentageHasBeenSet;
int m_branchesCovered;
bool m_branchesCoveredHasBeenSet;
int m_branchesMissed;
bool m_branchesMissedHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class ComputeType
{
NOT_SET,
BUILD_GENERAL1_SMALL,
BUILD_GENERAL1_MEDIUM,
BUILD_GENERAL1_LARGE,
BUILD_GENERAL1_2XLARGE
};
namespace ComputeTypeMapper
{
AWS_CODEBUILD_API ComputeType GetComputeTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForComputeType(ComputeType value);
} // namespace ComputeTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/codebuild/model/Project.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API CreateProjectResult
{
public:
CreateProjectResult();
CreateProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the build project that was created.</p>
*/
inline const Project& GetProject() const{ return m_project; }
/**
* <p>Information about the build project that was created.</p>
*/
inline void SetProject(const Project& value) { m_project = value; }
/**
* <p>Information about the build project that was created.</p>
*/
inline void SetProject(Project&& value) { m_project = std::move(value); }
/**
* <p>Information about the build project that was created.</p>
*/
inline CreateProjectResult& WithProject(const Project& value) { SetProject(value); return *this;}
/**
* <p>Information about the build project that was created.</p>
*/
inline CreateProjectResult& WithProject(Project&& value) { SetProject(std::move(value)); return *this;}
private:
Project m_project;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/ReportType.h>
#include <aws/codebuild/model/ReportExportConfig.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codebuild/model/Tag.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API CreateReportGroupRequest : public CodeBuildRequest
{
public:
CreateReportGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateReportGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The name of the report group. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of the report group. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of the report group. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of the report group. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of the report group. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of the report group. </p>
*/
inline CreateReportGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of the report group. </p>
*/
inline CreateReportGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of the report group. </p>
*/
inline CreateReportGroupRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p> The type of report group. </p>
*/
inline const ReportType& GetType() const{ return m_type; }
/**
* <p> The type of report group. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> The type of report group. </p>
*/
inline void SetType(const ReportType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> The type of report group. </p>
*/
inline void SetType(ReportType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> The type of report group. </p>
*/
inline CreateReportGroupRequest& WithType(const ReportType& value) { SetType(value); return *this;}
/**
* <p> The type of report group. </p>
*/
inline CreateReportGroupRequest& WithType(ReportType&& value) { SetType(std::move(value)); return *this;}
/**
* <p> A <code>ReportExportConfig</code> object that contains information about
* where the report group test results are exported. </p>
*/
inline const ReportExportConfig& GetExportConfig() const{ return m_exportConfig; }
/**
* <p> A <code>ReportExportConfig</code> object that contains information about
* where the report group test results are exported. </p>
*/
inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
/**
* <p> A <code>ReportExportConfig</code> object that contains information about
* where the report group test results are exported. </p>
*/
inline void SetExportConfig(const ReportExportConfig& value) { m_exportConfigHasBeenSet = true; m_exportConfig = value; }
/**
* <p> A <code>ReportExportConfig</code> object that contains information about
* where the report group test results are exported. </p>
*/
inline void SetExportConfig(ReportExportConfig&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::move(value); }
/**
* <p> A <code>ReportExportConfig</code> object that contains information about
* where the report group test results are exported. </p>
*/
inline CreateReportGroupRequest& WithExportConfig(const ReportExportConfig& value) { SetExportConfig(value); return *this;}
/**
* <p> A <code>ReportExportConfig</code> object that contains information about
* where the report group test results are exported. </p>
*/
inline CreateReportGroupRequest& WithExportConfig(ReportExportConfig&& value) { SetExportConfig(std::move(value)); return *this;}
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline CreateReportGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline CreateReportGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline CreateReportGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p> A list of tag key and value pairs associated with this report group. </p>
* <p>These tags are available for use by AWS services that support AWS CodeBuild
* report group tags.</p>
*/
inline CreateReportGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
ReportType m_type;
bool m_typeHasBeenSet;
ReportExportConfig m_exportConfig;
bool m_exportConfigHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/codebuild/model/ReportGroup.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API CreateReportGroupResult
{
public:
CreateReportGroupResult();
CreateReportGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateReportGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Information about the report group that was created. </p>
*/
inline const ReportGroup& GetReportGroup() const{ return m_reportGroup; }
/**
* <p> Information about the report group that was created. </p>
*/
inline void SetReportGroup(const ReportGroup& value) { m_reportGroup = value; }
/**
* <p> Information about the report group that was created. </p>
*/
inline void SetReportGroup(ReportGroup&& value) { m_reportGroup = std::move(value); }
/**
* <p> Information about the report group that was created. </p>
*/
inline CreateReportGroupResult& WithReportGroup(const ReportGroup& value) { SetReportGroup(value); return *this;}
/**
* <p> Information about the report group that was created. </p>
*/
inline CreateReportGroupResult& WithReportGroup(ReportGroup&& value) { SetReportGroup(std::move(value)); return *this;}
private:
ReportGroup m_reportGroup;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,282 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codebuild/model/WebhookBuildType.h>
#include <aws/codebuild/model/WebhookFilter.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API CreateWebhookRequest : public CodeBuildRequest
{
public:
CreateWebhookRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateWebhook"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline CreateWebhookRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline CreateWebhookRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline CreateWebhookRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline const Aws::String& GetBranchFilter() const{ return m_branchFilter; }
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline void SetBranchFilter(const Aws::String& value) { m_branchFilterHasBeenSet = true; m_branchFilter = value; }
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline void SetBranchFilter(Aws::String&& value) { m_branchFilterHasBeenSet = true; m_branchFilter = std::move(value); }
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline void SetBranchFilter(const char* value) { m_branchFilterHasBeenSet = true; m_branchFilter.assign(value); }
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline CreateWebhookRequest& WithBranchFilter(const Aws::String& value) { SetBranchFilter(value); return *this;}
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline CreateWebhookRequest& WithBranchFilter(Aws::String&& value) { SetBranchFilter(std::move(value)); return *this;}
/**
* <p>A regular expression used to determine which repository branches are built
* when a webhook is triggered. If the name of a branch matches the regular
* expression, then it is built. If <code>branchFilter</code> is empty, then all
* branches are built.</p> <p>It is recommended that you use
* <code>filterGroups</code> instead of <code>branchFilter</code>. </p>
*/
inline CreateWebhookRequest& WithBranchFilter(const char* value) { SetBranchFilter(value); return *this;}
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const{ return m_filterGroups; }
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline void SetFilterGroups(const Aws::Vector<Aws::Vector<WebhookFilter>>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = value; }
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline void SetFilterGroups(Aws::Vector<Aws::Vector<WebhookFilter>>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::move(value); }
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline CreateWebhookRequest& WithFilterGroups(const Aws::Vector<Aws::Vector<WebhookFilter>>& value) { SetFilterGroups(value); return *this;}
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline CreateWebhookRequest& WithFilterGroups(Aws::Vector<Aws::Vector<WebhookFilter>>&& value) { SetFilterGroups(std::move(value)); return *this;}
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline CreateWebhookRequest& AddFilterGroups(const Aws::Vector<WebhookFilter>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(value); return *this; }
/**
* <p>An array of arrays of <code>WebhookFilter</code> objects used to determine
* which webhooks are triggered. At least one <code>WebhookFilter</code> in the
* array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a
* build to be triggered, at least one filter group in the
* <code>filterGroups</code> array must pass. For a filter group to pass, each of
* its filters must pass. </p>
*/
inline CreateWebhookRequest& AddFilterGroups(Aws::Vector<WebhookFilter>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the type of build this webhook will trigger.</p>
*/
inline const WebhookBuildType& GetBuildType() const{ return m_buildType; }
/**
* <p>Specifies the type of build this webhook will trigger.</p>
*/
inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
/**
* <p>Specifies the type of build this webhook will trigger.</p>
*/
inline void SetBuildType(const WebhookBuildType& value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
/**
* <p>Specifies the type of build this webhook will trigger.</p>
*/
inline void SetBuildType(WebhookBuildType&& value) { m_buildTypeHasBeenSet = true; m_buildType = std::move(value); }
/**
* <p>Specifies the type of build this webhook will trigger.</p>
*/
inline CreateWebhookRequest& WithBuildType(const WebhookBuildType& value) { SetBuildType(value); return *this;}
/**
* <p>Specifies the type of build this webhook will trigger.</p>
*/
inline CreateWebhookRequest& WithBuildType(WebhookBuildType&& value) { SetBuildType(std::move(value)); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_branchFilter;
bool m_branchFilterHasBeenSet;
Aws::Vector<Aws::Vector<WebhookFilter>> m_filterGroups;
bool m_filterGroupsHasBeenSet;
WebhookBuildType m_buildType;
bool m_buildTypeHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/codebuild/model/Webhook.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API CreateWebhookResult
{
public:
CreateWebhookResult();
CreateWebhookResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateWebhookResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about a webhook that connects repository events to a build
* project in AWS CodeBuild.</p>
*/
inline const Webhook& GetWebhook() const{ return m_webhook; }
/**
* <p>Information about a webhook that connects repository events to a build
* project in AWS CodeBuild.</p>
*/
inline void SetWebhook(const Webhook& value) { m_webhook = value; }
/**
* <p>Information about a webhook that connects repository events to a build
* project in AWS CodeBuild.</p>
*/
inline void SetWebhook(Webhook&& value) { m_webhook = std::move(value); }
/**
* <p>Information about a webhook that connects repository events to a build
* project in AWS CodeBuild.</p>
*/
inline CreateWebhookResult& WithWebhook(const Webhook& value) { SetWebhook(value); return *this;}
/**
* <p>Information about a webhook that connects repository events to a build
* project in AWS CodeBuild.</p>
*/
inline CreateWebhookResult& WithWebhook(Webhook&& value) { SetWebhook(std::move(value)); return *this;}
private:
Webhook m_webhook;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class CredentialProviderType
{
NOT_SET,
SECRETS_MANAGER
};
namespace CredentialProviderTypeMapper
{
AWS_CODEBUILD_API CredentialProviderType GetCredentialProviderTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForCredentialProviderType(CredentialProviderType value);
} // namespace CredentialProviderTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Contains information about the debug session for a build. For more
* information, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing
* a running build in Session Manager</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DebugSession">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API DebugSession
{
public:
DebugSession();
DebugSession(Aws::Utils::Json::JsonView jsonValue);
DebugSession& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies if session debugging is enabled for this build.</p>
*/
inline bool GetSessionEnabled() const{ return m_sessionEnabled; }
/**
* <p>Specifies if session debugging is enabled for this build.</p>
*/
inline bool SessionEnabledHasBeenSet() const { return m_sessionEnabledHasBeenSet; }
/**
* <p>Specifies if session debugging is enabled for this build.</p>
*/
inline void SetSessionEnabled(bool value) { m_sessionEnabledHasBeenSet = true; m_sessionEnabled = value; }
/**
* <p>Specifies if session debugging is enabled for this build.</p>
*/
inline DebugSession& WithSessionEnabled(bool value) { SetSessionEnabled(value); return *this;}
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline const Aws::String& GetSessionTarget() const{ return m_sessionTarget; }
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline bool SessionTargetHasBeenSet() const { return m_sessionTargetHasBeenSet; }
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline void SetSessionTarget(const Aws::String& value) { m_sessionTargetHasBeenSet = true; m_sessionTarget = value; }
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline void SetSessionTarget(Aws::String&& value) { m_sessionTargetHasBeenSet = true; m_sessionTarget = std::move(value); }
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline void SetSessionTarget(const char* value) { m_sessionTargetHasBeenSet = true; m_sessionTarget.assign(value); }
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline DebugSession& WithSessionTarget(const Aws::String& value) { SetSessionTarget(value); return *this;}
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline DebugSession& WithSessionTarget(Aws::String&& value) { SetSessionTarget(std::move(value)); return *this;}
/**
* <p>Contains the identifier of the Session Manager session used for the build. To
* work with the paused build, you open this session to examine, control, and
* resume the build.</p>
*/
inline DebugSession& WithSessionTarget(const char* value) { SetSessionTarget(value); return *this;}
private:
bool m_sessionEnabled;
bool m_sessionEnabledHasBeenSet;
Aws::String m_sessionTarget;
bool m_sessionTargetHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DeleteBuildBatchRequest : public CodeBuildRequest
{
public:
DeleteBuildBatchRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteBuildBatch"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline DeleteBuildBatchRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline DeleteBuildBatchRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The identifier of the batch build to delete.</p>
*/
inline DeleteBuildBatchRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* 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/memory/stl/AWSVector.h>
#include <aws/codebuild/model/BuildNotDeleted.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DeleteBuildBatchResult
{
public:
DeleteBuildBatchResult();
DeleteBuildBatchResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteBuildBatchResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The status code.</p>
*/
inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
/**
* <p>The status code.</p>
*/
inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; }
/**
* <p>The status code.</p>
*/
inline void SetStatusCode(Aws::String&& value) { m_statusCode = std::move(value); }
/**
* <p>The status code.</p>
*/
inline void SetStatusCode(const char* value) { m_statusCode.assign(value); }
/**
* <p>The status code.</p>
*/
inline DeleteBuildBatchResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
/**
* <p>The status code.</p>
*/
inline DeleteBuildBatchResult& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* <p>The status code.</p>
*/
inline DeleteBuildBatchResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline const Aws::Vector<Aws::String>& GetBuildsDeleted() const{ return m_buildsDeleted; }
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline void SetBuildsDeleted(const Aws::Vector<Aws::String>& value) { m_buildsDeleted = value; }
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline void SetBuildsDeleted(Aws::Vector<Aws::String>&& value) { m_buildsDeleted = std::move(value); }
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline DeleteBuildBatchResult& WithBuildsDeleted(const Aws::Vector<Aws::String>& value) { SetBuildsDeleted(value); return *this;}
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline DeleteBuildBatchResult& WithBuildsDeleted(Aws::Vector<Aws::String>&& value) { SetBuildsDeleted(std::move(value)); return *this;}
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline DeleteBuildBatchResult& AddBuildsDeleted(const Aws::String& value) { m_buildsDeleted.push_back(value); return *this; }
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline DeleteBuildBatchResult& AddBuildsDeleted(Aws::String&& value) { m_buildsDeleted.push_back(std::move(value)); return *this; }
/**
* <p>An array of strings that contain the identifiers of the builds that were
* deleted.</p>
*/
inline DeleteBuildBatchResult& AddBuildsDeleted(const char* value) { m_buildsDeleted.push_back(value); return *this; }
/**
* <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that
* could not be deleted.</p>
*/
inline const Aws::Vector<BuildNotDeleted>& GetBuildsNotDeleted() const{ return m_buildsNotDeleted; }
/**
* <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that
* could not be deleted.</p>
*/
inline void SetBuildsNotDeleted(const Aws::Vector<BuildNotDeleted>& value) { m_buildsNotDeleted = value; }
/**
* <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that
* could not be deleted.</p>
*/
inline void SetBuildsNotDeleted(Aws::Vector<BuildNotDeleted>&& value) { m_buildsNotDeleted = std::move(value); }
/**
* <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that
* could not be deleted.</p>
*/
inline DeleteBuildBatchResult& WithBuildsNotDeleted(const Aws::Vector<BuildNotDeleted>& value) { SetBuildsNotDeleted(value); return *this;}
/**
* <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that
* could not be deleted.</p>
*/
inline DeleteBuildBatchResult& WithBuildsNotDeleted(Aws::Vector<BuildNotDeleted>&& value) { SetBuildsNotDeleted(std::move(value)); return *this;}
/**
* <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that
* could not be deleted.</p>
*/
inline DeleteBuildBatchResult& AddBuildsNotDeleted(const BuildNotDeleted& value) { m_buildsNotDeleted.push_back(value); return *this; }
/**
* <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that
* could not be deleted.</p>
*/
inline DeleteBuildBatchResult& AddBuildsNotDeleted(BuildNotDeleted&& value) { m_buildsNotDeleted.push_back(std::move(value)); return *this; }
private:
Aws::String m_statusCode;
Aws::Vector<Aws::String> m_buildsDeleted;
Aws::Vector<BuildNotDeleted> m_buildsNotDeleted;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DeleteProjectRequest : public CodeBuildRequest
{
public:
DeleteProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the build project.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the build project.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the build project.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the build project.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the build project.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the build project.</p>
*/
inline DeleteProjectRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the build project.</p>
*/
inline DeleteProjectRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the build project.</p>
*/
inline DeleteProjectRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DeleteProjectResult
{
public:
DeleteProjectResult();
DeleteProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DeleteReportGroupRequest : public CodeBuildRequest
{
public:
DeleteReportGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteReportGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ARN of the report group to delete. </p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p> The ARN of the report group to delete. </p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p> The ARN of the report group to delete. </p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p> The ARN of the report group to delete. </p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p> The ARN of the report group to delete. </p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p> The ARN of the report group to delete. </p>
*/
inline DeleteReportGroupRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p> The ARN of the report group to delete. </p>
*/
inline DeleteReportGroupRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p> The ARN of the report group to delete. </p>
*/
inline DeleteReportGroupRequest& WithArn(const char* value) { SetArn(value); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DeleteReportGroupResult
{
public:
DeleteReportGroupResult();
DeleteReportGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteReportGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DeleteReportRequest : public CodeBuildRequest
{
public:
DeleteReportRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteReport"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ARN of the report to delete. </p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p> The ARN of the report to delete. </p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p> The ARN of the report to delete. </p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p> The ARN of the report to delete. </p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p> The ARN of the report to delete. </p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p> The ARN of the report to delete. </p>
*/
inline DeleteReportRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p> The ARN of the report to delete. </p>
*/
inline DeleteReportRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p> The ARN of the report to delete. </p>
*/
inline DeleteReportRequest& WithArn(const char* value) { SetArn(value); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DeleteReportResult
{
public:
DeleteReportResult();
DeleteReportResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteReportResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DeleteResourcePolicyRequest : public CodeBuildRequest
{
public:
DeleteResourcePolicyRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteResourcePolicy"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline DeleteResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline DeleteResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline DeleteResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DeleteResourcePolicyResult
{
public:
DeleteResourcePolicyResult();
DeleteResourcePolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DeleteSourceCredentialsRequest : public CodeBuildRequest
{
public:
DeleteSourceCredentialsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteSourceCredentials"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline DeleteSourceCredentialsRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline DeleteSourceCredentialsRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the token.</p>
*/
inline DeleteSourceCredentialsRequest& WithArn(const char* value) { SetArn(value); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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 <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DeleteSourceCredentialsResult
{
public:
DeleteSourceCredentialsResult();
DeleteSourceCredentialsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteSourceCredentialsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline DeleteSourceCredentialsResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline DeleteSourceCredentialsResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline DeleteSourceCredentialsResult& WithArn(const char* value) { SetArn(value); return *this;}
private:
Aws::String m_arn;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DeleteWebhookRequest : public CodeBuildRequest
{
public:
DeleteWebhookRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteWebhook"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline DeleteWebhookRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline DeleteWebhookRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline DeleteWebhookRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DeleteWebhookResult
{
public:
DeleteWebhookResult();
DeleteWebhookResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteWebhookResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <aws/codebuild/model/ReportCodeCoverageSortByType.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DescribeCodeCoveragesRequest : public CodeBuildRequest
{
public:
DescribeCodeCoveragesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeCodeCoverages"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline const Aws::String& GetReportArn() const{ return m_reportArn; }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline bool ReportArnHasBeenSet() const { return m_reportArnHasBeenSet; }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline void SetReportArn(const Aws::String& value) { m_reportArnHasBeenSet = true; m_reportArn = value; }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline void SetReportArn(Aws::String&& value) { m_reportArnHasBeenSet = true; m_reportArn = std::move(value); }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline void SetReportArn(const char* value) { m_reportArnHasBeenSet = true; m_reportArn.assign(value); }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline DescribeCodeCoveragesRequest& WithReportArn(const Aws::String& value) { SetReportArn(value); return *this;}
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline DescribeCodeCoveragesRequest& WithReportArn(Aws::String&& value) { SetReportArn(std::move(value)); return *this;}
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline DescribeCodeCoveragesRequest& WithReportArn(const char* value) { SetReportArn(value); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline DescribeCodeCoveragesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline DescribeCodeCoveragesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>DescribeCodeCoverages</code>. This specifies the next item to return. To
* return the beginning of the list, exclude this parameter.</p>
*/
inline DescribeCodeCoveragesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return.</p>
*/
inline DescribeCodeCoveragesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>Specifies if the results are sorted in ascending or descending order.</p>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p>Specifies if the results are sorted in ascending or descending order.</p>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p>Specifies if the results are sorted in ascending or descending order.</p>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p>Specifies if the results are sorted in ascending or descending order.</p>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p>Specifies if the results are sorted in ascending or descending order.</p>
*/
inline DescribeCodeCoveragesRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p>Specifies if the results are sorted in ascending or descending order.</p>
*/
inline DescribeCodeCoveragesRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p>Specifies how the results are sorted. Possible values are:</p> <dl>
* <dt>FILE_PATH</dt> <dd> <p>The results are sorted by file path.</p> </dd>
* <dt>LINE_COVERAGE_PERCENTAGE</dt> <dd> <p>The results are sorted by the
* percentage of lines that are covered.</p> </dd> </dl>
*/
inline const ReportCodeCoverageSortByType& GetSortBy() const{ return m_sortBy; }
/**
* <p>Specifies how the results are sorted. Possible values are:</p> <dl>
* <dt>FILE_PATH</dt> <dd> <p>The results are sorted by file path.</p> </dd>
* <dt>LINE_COVERAGE_PERCENTAGE</dt> <dd> <p>The results are sorted by the
* percentage of lines that are covered.</p> </dd> </dl>
*/
inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
/**
* <p>Specifies how the results are sorted. Possible values are:</p> <dl>
* <dt>FILE_PATH</dt> <dd> <p>The results are sorted by file path.</p> </dd>
* <dt>LINE_COVERAGE_PERCENTAGE</dt> <dd> <p>The results are sorted by the
* percentage of lines that are covered.</p> </dd> </dl>
*/
inline void SetSortBy(const ReportCodeCoverageSortByType& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
/**
* <p>Specifies how the results are sorted. Possible values are:</p> <dl>
* <dt>FILE_PATH</dt> <dd> <p>The results are sorted by file path.</p> </dd>
* <dt>LINE_COVERAGE_PERCENTAGE</dt> <dd> <p>The results are sorted by the
* percentage of lines that are covered.</p> </dd> </dl>
*/
inline void SetSortBy(ReportCodeCoverageSortByType&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
/**
* <p>Specifies how the results are sorted. Possible values are:</p> <dl>
* <dt>FILE_PATH</dt> <dd> <p>The results are sorted by file path.</p> </dd>
* <dt>LINE_COVERAGE_PERCENTAGE</dt> <dd> <p>The results are sorted by the
* percentage of lines that are covered.</p> </dd> </dl>
*/
inline DescribeCodeCoveragesRequest& WithSortBy(const ReportCodeCoverageSortByType& value) { SetSortBy(value); return *this;}
/**
* <p>Specifies how the results are sorted. Possible values are:</p> <dl>
* <dt>FILE_PATH</dt> <dd> <p>The results are sorted by file path.</p> </dd>
* <dt>LINE_COVERAGE_PERCENTAGE</dt> <dd> <p>The results are sorted by the
* percentage of lines that are covered.</p> </dd> </dl>
*/
inline DescribeCodeCoveragesRequest& WithSortBy(ReportCodeCoverageSortByType&& value) { SetSortBy(std::move(value)); return *this;}
/**
* <p>The minimum line coverage percentage to report.</p>
*/
inline double GetMinLineCoveragePercentage() const{ return m_minLineCoveragePercentage; }
/**
* <p>The minimum line coverage percentage to report.</p>
*/
inline bool MinLineCoveragePercentageHasBeenSet() const { return m_minLineCoveragePercentageHasBeenSet; }
/**
* <p>The minimum line coverage percentage to report.</p>
*/
inline void SetMinLineCoveragePercentage(double value) { m_minLineCoveragePercentageHasBeenSet = true; m_minLineCoveragePercentage = value; }
/**
* <p>The minimum line coverage percentage to report.</p>
*/
inline DescribeCodeCoveragesRequest& WithMinLineCoveragePercentage(double value) { SetMinLineCoveragePercentage(value); return *this;}
/**
* <p>The maximum line coverage percentage to report.</p>
*/
inline double GetMaxLineCoveragePercentage() const{ return m_maxLineCoveragePercentage; }
/**
* <p>The maximum line coverage percentage to report.</p>
*/
inline bool MaxLineCoveragePercentageHasBeenSet() const { return m_maxLineCoveragePercentageHasBeenSet; }
/**
* <p>The maximum line coverage percentage to report.</p>
*/
inline void SetMaxLineCoveragePercentage(double value) { m_maxLineCoveragePercentageHasBeenSet = true; m_maxLineCoveragePercentage = value; }
/**
* <p>The maximum line coverage percentage to report.</p>
*/
inline DescribeCodeCoveragesRequest& WithMaxLineCoveragePercentage(double value) { SetMaxLineCoveragePercentage(value); return *this;}
private:
Aws::String m_reportArn;
bool m_reportArnHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
ReportCodeCoverageSortByType m_sortBy;
bool m_sortByHasBeenSet;
double m_minLineCoveragePercentage;
bool m_minLineCoveragePercentageHasBeenSet;
double m_maxLineCoveragePercentage;
bool m_maxLineCoveragePercentageHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* 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/memory/stl/AWSVector.h>
#include <aws/codebuild/model/CodeCoverage.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DescribeCodeCoveragesResult
{
public:
DescribeCodeCoveragesResult();
DescribeCodeCoveragesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeCodeCoveragesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set
* of items.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set
* of items.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set
* of items.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set
* of items.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set
* of items.</p>
*/
inline DescribeCodeCoveragesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set
* of items.</p>
*/
inline DescribeCodeCoveragesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set
* of items.</p>
*/
inline DescribeCodeCoveragesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
*/
inline const Aws::Vector<CodeCoverage>& GetCodeCoverages() const{ return m_codeCoverages; }
/**
* <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
*/
inline void SetCodeCoverages(const Aws::Vector<CodeCoverage>& value) { m_codeCoverages = value; }
/**
* <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
*/
inline void SetCodeCoverages(Aws::Vector<CodeCoverage>&& value) { m_codeCoverages = std::move(value); }
/**
* <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
*/
inline DescribeCodeCoveragesResult& WithCodeCoverages(const Aws::Vector<CodeCoverage>& value) { SetCodeCoverages(value); return *this;}
/**
* <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
*/
inline DescribeCodeCoveragesResult& WithCodeCoverages(Aws::Vector<CodeCoverage>&& value) { SetCodeCoverages(std::move(value)); return *this;}
/**
* <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
*/
inline DescribeCodeCoveragesResult& AddCodeCoverages(const CodeCoverage& value) { m_codeCoverages.push_back(value); return *this; }
/**
* <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
*/
inline DescribeCodeCoveragesResult& AddCodeCoverages(CodeCoverage&& value) { m_codeCoverages.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<CodeCoverage> m_codeCoverages;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,250 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/TestCaseFilter.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API DescribeTestCasesRequest : public CodeBuildRequest
{
public:
DescribeTestCasesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeTestCases"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline const Aws::String& GetReportArn() const{ return m_reportArn; }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline bool ReportArnHasBeenSet() const { return m_reportArnHasBeenSet; }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline void SetReportArn(const Aws::String& value) { m_reportArnHasBeenSet = true; m_reportArn = value; }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline void SetReportArn(Aws::String&& value) { m_reportArnHasBeenSet = true; m_reportArn = std::move(value); }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline void SetReportArn(const char* value) { m_reportArnHasBeenSet = true; m_reportArn.assign(value); }
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline DescribeTestCasesRequest& WithReportArn(const Aws::String& value) { SetReportArn(value); return *this;}
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline DescribeTestCasesRequest& WithReportArn(Aws::String&& value) { SetReportArn(std::move(value)); return *this;}
/**
* <p> The ARN of the report for which test cases are returned. </p>
*/
inline DescribeTestCasesRequest& WithReportArn(const char* value) { SetReportArn(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline DescribeTestCasesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline DescribeTestCasesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline DescribeTestCasesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The maximum number of paginated test cases returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>TestCase</code> objects. The default value is 100. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of paginated test cases returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>TestCase</code> objects. The default value is 100. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of paginated test cases returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>TestCase</code> objects. The default value is 100. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of paginated test cases returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>TestCase</code> objects. The default value is 100. </p>
*/
inline DescribeTestCasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p> A <code>TestCaseFilter</code> object used to filter the returned reports.
* </p>
*/
inline const TestCaseFilter& GetFilter() const{ return m_filter; }
/**
* <p> A <code>TestCaseFilter</code> object used to filter the returned reports.
* </p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p> A <code>TestCaseFilter</code> object used to filter the returned reports.
* </p>
*/
inline void SetFilter(const TestCaseFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p> A <code>TestCaseFilter</code> object used to filter the returned reports.
* </p>
*/
inline void SetFilter(TestCaseFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p> A <code>TestCaseFilter</code> object used to filter the returned reports.
* </p>
*/
inline DescribeTestCasesRequest& WithFilter(const TestCaseFilter& value) { SetFilter(value); return *this;}
/**
* <p> A <code>TestCaseFilter</code> object used to filter the returned reports.
* </p>
*/
inline DescribeTestCasesRequest& WithFilter(TestCaseFilter&& value) { SetFilter(std::move(value)); return *this;}
private:
Aws::String m_reportArn;
bool m_reportArnHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
TestCaseFilter m_filter;
bool m_filterHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* 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/memory/stl/AWSVector.h>
#include <aws/codebuild/model/TestCase.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API DescribeTestCasesResult
{
public:
DescribeTestCasesResult();
DescribeTestCasesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeTestCasesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline DescribeTestCasesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline DescribeTestCasesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline DescribeTestCasesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The returned list of test cases. </p>
*/
inline const Aws::Vector<TestCase>& GetTestCases() const{ return m_testCases; }
/**
* <p> The returned list of test cases. </p>
*/
inline void SetTestCases(const Aws::Vector<TestCase>& value) { m_testCases = value; }
/**
* <p> The returned list of test cases. </p>
*/
inline void SetTestCases(Aws::Vector<TestCase>&& value) { m_testCases = std::move(value); }
/**
* <p> The returned list of test cases. </p>
*/
inline DescribeTestCasesResult& WithTestCases(const Aws::Vector<TestCase>& value) { SetTestCases(value); return *this;}
/**
* <p> The returned list of test cases. </p>
*/
inline DescribeTestCasesResult& WithTestCases(Aws::Vector<TestCase>&& value) { SetTestCases(std::move(value)); return *this;}
/**
* <p> The returned list of test cases. </p>
*/
inline DescribeTestCasesResult& AddTestCases(const TestCase& value) { m_testCases.push_back(value); return *this; }
/**
* <p> The returned list of test cases. </p>
*/
inline DescribeTestCasesResult& AddTestCases(TestCase&& value) { m_testCases.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<TestCase> m_testCases;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* 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/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>Information about a Docker image that is managed by AWS
* CodeBuild.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentImage">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API EnvironmentImage
{
public:
EnvironmentImage();
EnvironmentImage(Aws::Utils::Json::JsonView jsonValue);
EnvironmentImage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the Docker image.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the Docker image.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the Docker image.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the Docker image.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the Docker image.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the Docker image.</p>
*/
inline EnvironmentImage& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the Docker image.</p>
*/
inline EnvironmentImage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the Docker image.</p>
*/
inline EnvironmentImage& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the Docker image.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the Docker image.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the Docker image.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the Docker image.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the Docker image.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the Docker image.</p>
*/
inline EnvironmentImage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the Docker image.</p>
*/
inline EnvironmentImage& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the Docker image.</p>
*/
inline EnvironmentImage& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A list of environment image versions.</p>
*/
inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
/**
* <p>A list of environment image versions.</p>
*/
inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
/**
* <p>A list of environment image versions.</p>
*/
inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
/**
* <p>A list of environment image versions.</p>
*/
inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
/**
* <p>A list of environment image versions.</p>
*/
inline EnvironmentImage& WithVersions(const Aws::Vector<Aws::String>& value) { SetVersions(value); return *this;}
/**
* <p>A list of environment image versions.</p>
*/
inline EnvironmentImage& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
/**
* <p>A list of environment image versions.</p>
*/
inline EnvironmentImage& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
/**
* <p>A list of environment image versions.</p>
*/
inline EnvironmentImage& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
/**
* <p>A list of environment image versions.</p>
*/
inline EnvironmentImage& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<Aws::String> m_versions;
bool m_versionsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* 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/codebuild/model/LanguageType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codebuild/model/EnvironmentImage.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>A set of Docker images that are related by programming language and are
* managed by AWS CodeBuild.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentLanguage">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API EnvironmentLanguage
{
public:
EnvironmentLanguage();
EnvironmentLanguage(Aws::Utils::Json::JsonView jsonValue);
EnvironmentLanguage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The programming language for the Docker images.</p>
*/
inline const LanguageType& GetLanguage() const{ return m_language; }
/**
* <p>The programming language for the Docker images.</p>
*/
inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
/**
* <p>The programming language for the Docker images.</p>
*/
inline void SetLanguage(const LanguageType& value) { m_languageHasBeenSet = true; m_language = value; }
/**
* <p>The programming language for the Docker images.</p>
*/
inline void SetLanguage(LanguageType&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
/**
* <p>The programming language for the Docker images.</p>
*/
inline EnvironmentLanguage& WithLanguage(const LanguageType& value) { SetLanguage(value); return *this;}
/**
* <p>The programming language for the Docker images.</p>
*/
inline EnvironmentLanguage& WithLanguage(LanguageType&& value) { SetLanguage(std::move(value)); return *this;}
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline const Aws::Vector<EnvironmentImage>& GetImages() const{ return m_images; }
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline bool ImagesHasBeenSet() const { return m_imagesHasBeenSet; }
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline void SetImages(const Aws::Vector<EnvironmentImage>& value) { m_imagesHasBeenSet = true; m_images = value; }
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline void SetImages(Aws::Vector<EnvironmentImage>&& value) { m_imagesHasBeenSet = true; m_images = std::move(value); }
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline EnvironmentLanguage& WithImages(const Aws::Vector<EnvironmentImage>& value) { SetImages(value); return *this;}
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline EnvironmentLanguage& WithImages(Aws::Vector<EnvironmentImage>&& value) { SetImages(std::move(value)); return *this;}
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline EnvironmentLanguage& AddImages(const EnvironmentImage& value) { m_imagesHasBeenSet = true; m_images.push_back(value); return *this; }
/**
* <p>The list of Docker images that are related by the specified programming
* language.</p>
*/
inline EnvironmentLanguage& AddImages(EnvironmentImage&& value) { m_imagesHasBeenSet = true; m_images.push_back(std::move(value)); return *this; }
private:
LanguageType m_language;
bool m_languageHasBeenSet;
Aws::Vector<EnvironmentImage> m_images;
bool m_imagesHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* 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/codebuild/model/PlatformType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codebuild/model/EnvironmentLanguage.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>A set of Docker images that are related by platform and are managed by AWS
* CodeBuild.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentPlatform">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API EnvironmentPlatform
{
public:
EnvironmentPlatform();
EnvironmentPlatform(Aws::Utils::Json::JsonView jsonValue);
EnvironmentPlatform& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The platform's name.</p>
*/
inline const PlatformType& GetPlatform() const{ return m_platform; }
/**
* <p>The platform's name.</p>
*/
inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
/**
* <p>The platform's name.</p>
*/
inline void SetPlatform(const PlatformType& value) { m_platformHasBeenSet = true; m_platform = value; }
/**
* <p>The platform's name.</p>
*/
inline void SetPlatform(PlatformType&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
/**
* <p>The platform's name.</p>
*/
inline EnvironmentPlatform& WithPlatform(const PlatformType& value) { SetPlatform(value); return *this;}
/**
* <p>The platform's name.</p>
*/
inline EnvironmentPlatform& WithPlatform(PlatformType&& value) { SetPlatform(std::move(value)); return *this;}
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline const Aws::Vector<EnvironmentLanguage>& GetLanguages() const{ return m_languages; }
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline bool LanguagesHasBeenSet() const { return m_languagesHasBeenSet; }
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline void SetLanguages(const Aws::Vector<EnvironmentLanguage>& value) { m_languagesHasBeenSet = true; m_languages = value; }
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline void SetLanguages(Aws::Vector<EnvironmentLanguage>&& value) { m_languagesHasBeenSet = true; m_languages = std::move(value); }
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline EnvironmentPlatform& WithLanguages(const Aws::Vector<EnvironmentLanguage>& value) { SetLanguages(value); return *this;}
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline EnvironmentPlatform& WithLanguages(Aws::Vector<EnvironmentLanguage>&& value) { SetLanguages(std::move(value)); return *this;}
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline EnvironmentPlatform& AddLanguages(const EnvironmentLanguage& value) { m_languagesHasBeenSet = true; m_languages.push_back(value); return *this; }
/**
* <p>The list of programming languages that are available for the specified
* platform.</p>
*/
inline EnvironmentPlatform& AddLanguages(EnvironmentLanguage&& value) { m_languagesHasBeenSet = true; m_languages.push_back(std::move(value)); return *this; }
private:
PlatformType m_platform;
bool m_platformHasBeenSet;
Aws::Vector<EnvironmentLanguage> m_languages;
bool m_languagesHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class EnvironmentType
{
NOT_SET,
WINDOWS_CONTAINER,
LINUX_CONTAINER,
LINUX_GPU_CONTAINER,
ARM_CONTAINER,
WINDOWS_SERVER_2019_CONTAINER
};
namespace EnvironmentTypeMapper
{
AWS_CODEBUILD_API EnvironmentType GetEnvironmentTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForEnvironmentType(EnvironmentType value);
} // namespace EnvironmentTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,282 @@
/**
* 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/codebuild/model/EnvironmentVariableType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Information about an environment variable for a build project or a
* build.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentVariable">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API EnvironmentVariable
{
public:
EnvironmentVariable();
EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue);
EnvironmentVariable& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name or key of the environment variable.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name or key of the environment variable.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name or key of the environment variable.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name or key of the environment variable.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name or key of the environment variable.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name or key of the environment variable.</p>
*/
inline EnvironmentVariable& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name or key of the environment variable.</p>
*/
inline EnvironmentVariable& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name or key of the environment variable.</p>
*/
inline EnvironmentVariable& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline EnvironmentVariable& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline EnvironmentVariable& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value of the environment variable.</p> <p>We strongly
* discourage the use of <code>PLAINTEXT</code> environment variables to store
* sensitive values, especially AWS secret key IDs and secret access keys.
* <code>PLAINTEXT</code> environment variables can be displayed in plain text
* using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
* For sensitive values, we recommend you use an environment variable of type
* <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code>. </p>
*/
inline EnvironmentVariable& WithValue(const char* value) { SetValue(value); return *this;}
/**
* <p>The type of environment variable. Valid values include:</p> <ul> <li> <p>
* <code>PARAMETER_STORE</code>: An environment variable stored in Amazon EC2
* Systems Manager Parameter Store. To learn how to specify a parameter store
* environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#parameter-store-build-spec">
* parameter store reference-key in the buildspec file</a>.</p> </li> <li> <p>
* <code>PLAINTEXT</code>: An environment variable in plain text format. This is
* the default value.</p> </li> <li> <p> <code>SECRETS_MANAGER</code>: An
* environment variable stored in AWS Secrets Manager. To learn how to specify a
* secrets manager environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#secrets-manager-build-spec">
* secrets manager reference-key in the buildspec file</a>.</p> </li> </ul>
*/
inline const EnvironmentVariableType& GetType() const{ return m_type; }
/**
* <p>The type of environment variable. Valid values include:</p> <ul> <li> <p>
* <code>PARAMETER_STORE</code>: An environment variable stored in Amazon EC2
* Systems Manager Parameter Store. To learn how to specify a parameter store
* environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#parameter-store-build-spec">
* parameter store reference-key in the buildspec file</a>.</p> </li> <li> <p>
* <code>PLAINTEXT</code>: An environment variable in plain text format. This is
* the default value.</p> </li> <li> <p> <code>SECRETS_MANAGER</code>: An
* environment variable stored in AWS Secrets Manager. To learn how to specify a
* secrets manager environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#secrets-manager-build-spec">
* secrets manager reference-key in the buildspec file</a>.</p> </li> </ul>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of environment variable. Valid values include:</p> <ul> <li> <p>
* <code>PARAMETER_STORE</code>: An environment variable stored in Amazon EC2
* Systems Manager Parameter Store. To learn how to specify a parameter store
* environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#parameter-store-build-spec">
* parameter store reference-key in the buildspec file</a>.</p> </li> <li> <p>
* <code>PLAINTEXT</code>: An environment variable in plain text format. This is
* the default value.</p> </li> <li> <p> <code>SECRETS_MANAGER</code>: An
* environment variable stored in AWS Secrets Manager. To learn how to specify a
* secrets manager environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#secrets-manager-build-spec">
* secrets manager reference-key in the buildspec file</a>.</p> </li> </ul>
*/
inline void SetType(const EnvironmentVariableType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of environment variable. Valid values include:</p> <ul> <li> <p>
* <code>PARAMETER_STORE</code>: An environment variable stored in Amazon EC2
* Systems Manager Parameter Store. To learn how to specify a parameter store
* environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#parameter-store-build-spec">
* parameter store reference-key in the buildspec file</a>.</p> </li> <li> <p>
* <code>PLAINTEXT</code>: An environment variable in plain text format. This is
* the default value.</p> </li> <li> <p> <code>SECRETS_MANAGER</code>: An
* environment variable stored in AWS Secrets Manager. To learn how to specify a
* secrets manager environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#secrets-manager-build-spec">
* secrets manager reference-key in the buildspec file</a>.</p> </li> </ul>
*/
inline void SetType(EnvironmentVariableType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of environment variable. Valid values include:</p> <ul> <li> <p>
* <code>PARAMETER_STORE</code>: An environment variable stored in Amazon EC2
* Systems Manager Parameter Store. To learn how to specify a parameter store
* environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#parameter-store-build-spec">
* parameter store reference-key in the buildspec file</a>.</p> </li> <li> <p>
* <code>PLAINTEXT</code>: An environment variable in plain text format. This is
* the default value.</p> </li> <li> <p> <code>SECRETS_MANAGER</code>: An
* environment variable stored in AWS Secrets Manager. To learn how to specify a
* secrets manager environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#secrets-manager-build-spec">
* secrets manager reference-key in the buildspec file</a>.</p> </li> </ul>
*/
inline EnvironmentVariable& WithType(const EnvironmentVariableType& value) { SetType(value); return *this;}
/**
* <p>The type of environment variable. Valid values include:</p> <ul> <li> <p>
* <code>PARAMETER_STORE</code>: An environment variable stored in Amazon EC2
* Systems Manager Parameter Store. To learn how to specify a parameter store
* environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#parameter-store-build-spec">
* parameter store reference-key in the buildspec file</a>.</p> </li> <li> <p>
* <code>PLAINTEXT</code>: An environment variable in plain text format. This is
* the default value.</p> </li> <li> <p> <code>SECRETS_MANAGER</code>: An
* environment variable stored in AWS Secrets Manager. To learn how to specify a
* secrets manager environment variable, see <a
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#secrets-manager-build-spec">
* secrets manager reference-key in the buildspec file</a>.</p> </li> </ul>
*/
inline EnvironmentVariable& WithType(EnvironmentVariableType&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
EnvironmentVariableType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class EnvironmentVariableType
{
NOT_SET,
PLAINTEXT,
PARAMETER_STORE,
SECRETS_MANAGER
};
namespace EnvironmentVariableTypeMapper
{
AWS_CODEBUILD_API EnvironmentVariableType GetEnvironmentVariableTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForEnvironmentVariableType(EnvironmentVariableType value);
} // namespace EnvironmentVariableTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p> Information about an exported environment variable. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ExportedEnvironmentVariable">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API ExportedEnvironmentVariable
{
public:
ExportedEnvironmentVariable();
ExportedEnvironmentVariable(Aws::Utils::Json::JsonView jsonValue);
ExportedEnvironmentVariable& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of this exported environment variable. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of this exported environment variable. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of this exported environment variable. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of this exported environment variable. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of this exported environment variable. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of this exported environment variable. </p>
*/
inline ExportedEnvironmentVariable& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of this exported environment variable. </p>
*/
inline ExportedEnvironmentVariable& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of this exported environment variable. </p>
*/
inline ExportedEnvironmentVariable& WithName(const char* value) { SetName(value); return *this;}
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline ExportedEnvironmentVariable& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline ExportedEnvironmentVariable& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p> The value assigned to this exported environment variable. </p> <p>
* During a build, the value of a variable is available starting with the
* <code>install</code> phase. It can be updated between the start of the
* <code>install</code> phase and the end of the <code>post_build</code> phase.
* After the <code>post_build</code> phase ends, the value of exported variables
* cannot change.</p>
*/
inline ExportedEnvironmentVariable& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class FileSystemType
{
NOT_SET,
EFS
};
namespace FileSystemTypeMapper
{
AWS_CODEBUILD_API FileSystemType GetFileSystemTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForFileSystemType(FileSystemType value);
} // namespace FileSystemTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API GetResourcePolicyRequest : public CodeBuildRequest
{
public:
GetResourcePolicyRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetResourcePolicy"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline GetResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline GetResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p> The ARN of the resource that is associated with the resource policy. </p>
*/
inline GetResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* 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 <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API GetResourcePolicyResult
{
public:
GetResourcePolicyResult();
GetResourcePolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The resource policy for the resource identified by the input ARN parameter.
* </p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p> The resource policy for the resource identified by the input ARN parameter.
* </p>
*/
inline void SetPolicy(const Aws::String& value) { m_policy = value; }
/**
* <p> The resource policy for the resource identified by the input ARN parameter.
* </p>
*/
inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
/**
* <p> The resource policy for the resource identified by the input ARN parameter.
* </p>
*/
inline void SetPolicy(const char* value) { m_policy.assign(value); }
/**
* <p> The resource policy for the resource identified by the input ARN parameter.
* </p>
*/
inline GetResourcePolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p> The resource policy for the resource identified by the input ARN parameter.
* </p>
*/
inline GetResourcePolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p> The resource policy for the resource identified by the input ARN parameter.
* </p>
*/
inline GetResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
private:
Aws::String m_policy;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,71 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p> Information about the Git submodules configuration for an AWS CodeBuild
* build project. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GitSubmodulesConfig">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API GitSubmodulesConfig
{
public:
GitSubmodulesConfig();
GitSubmodulesConfig(Aws::Utils::Json::JsonView jsonValue);
GitSubmodulesConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Set to true to fetch Git submodules for your AWS CodeBuild build project.
* </p>
*/
inline bool GetFetchSubmodules() const{ return m_fetchSubmodules; }
/**
* <p> Set to true to fetch Git submodules for your AWS CodeBuild build project.
* </p>
*/
inline bool FetchSubmodulesHasBeenSet() const { return m_fetchSubmodulesHasBeenSet; }
/**
* <p> Set to true to fetch Git submodules for your AWS CodeBuild build project.
* </p>
*/
inline void SetFetchSubmodules(bool value) { m_fetchSubmodulesHasBeenSet = true; m_fetchSubmodules = value; }
/**
* <p> Set to true to fetch Git submodules for your AWS CodeBuild build project.
* </p>
*/
inline GitSubmodulesConfig& WithFetchSubmodules(bool value) { SetFetchSubmodules(value); return *this;}
private:
bool m_fetchSubmodules;
bool m_fetchSubmodulesHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class ImagePullCredentialsType
{
NOT_SET,
CODEBUILD,
SERVICE_ROLE
};
namespace ImagePullCredentialsTypeMapper
{
AWS_CODEBUILD_API ImagePullCredentialsType GetImagePullCredentialsTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForImagePullCredentialsType(ImagePullCredentialsType value);
} // namespace ImagePullCredentialsTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,259 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/ServerType.h>
#include <aws/codebuild/model/AuthType.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ImportSourceCredentialsRequest : public CodeBuildRequest
{
public:
ImportSourceCredentialsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ImportSourceCredentials"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline ImportSourceCredentialsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline ImportSourceCredentialsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This
* parameter is not valid for other types of source providers or connections. </p>
*/
inline ImportSourceCredentialsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline const Aws::String& GetToken() const{ return m_token; }
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline ImportSourceCredentialsRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline ImportSourceCredentialsRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
/**
* <p> For GitHub or GitHub Enterprise, this is the personal access token. For
* Bitbucket, this is the app password. </p>
*/
inline ImportSourceCredentialsRequest& WithToken(const char* value) { SetToken(value); return *this;}
/**
* <p> The source provider used for this project. </p>
*/
inline const ServerType& GetServerType() const{ return m_serverType; }
/**
* <p> The source provider used for this project. </p>
*/
inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
/**
* <p> The source provider used for this project. </p>
*/
inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
/**
* <p> The source provider used for this project. </p>
*/
inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); }
/**
* <p> The source provider used for this project. </p>
*/
inline ImportSourceCredentialsRequest& WithServerType(const ServerType& value) { SetServerType(value); return *this;}
/**
* <p> The source provider used for this project. </p>
*/
inline ImportSourceCredentialsRequest& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;}
/**
* <p> The type of authentication used to connect to a GitHub, GitHub Enterprise,
* or Bitbucket repository. An OAUTH connection is not supported by the API and
* must be created using the AWS CodeBuild console. </p>
*/
inline const AuthType& GetAuthType() const{ return m_authType; }
/**
* <p> The type of authentication used to connect to a GitHub, GitHub Enterprise,
* or Bitbucket repository. An OAUTH connection is not supported by the API and
* must be created using the AWS CodeBuild console. </p>
*/
inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
/**
* <p> The type of authentication used to connect to a GitHub, GitHub Enterprise,
* or Bitbucket repository. An OAUTH connection is not supported by the API and
* must be created using the AWS CodeBuild console. </p>
*/
inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
/**
* <p> The type of authentication used to connect to a GitHub, GitHub Enterprise,
* or Bitbucket repository. An OAUTH connection is not supported by the API and
* must be created using the AWS CodeBuild console. </p>
*/
inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
/**
* <p> The type of authentication used to connect to a GitHub, GitHub Enterprise,
* or Bitbucket repository. An OAUTH connection is not supported by the API and
* must be created using the AWS CodeBuild console. </p>
*/
inline ImportSourceCredentialsRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;}
/**
* <p> The type of authentication used to connect to a GitHub, GitHub Enterprise,
* or Bitbucket repository. An OAUTH connection is not supported by the API and
* must be created using the AWS CodeBuild console. </p>
*/
inline ImportSourceCredentialsRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;}
/**
* <p> Set to <code>false</code> to prevent overwriting the repository source
* credentials. Set to <code>true</code> to overwrite the repository source
* credentials. The default value is <code>true</code>. </p>
*/
inline bool GetShouldOverwrite() const{ return m_shouldOverwrite; }
/**
* <p> Set to <code>false</code> to prevent overwriting the repository source
* credentials. Set to <code>true</code> to overwrite the repository source
* credentials. The default value is <code>true</code>. </p>
*/
inline bool ShouldOverwriteHasBeenSet() const { return m_shouldOverwriteHasBeenSet; }
/**
* <p> Set to <code>false</code> to prevent overwriting the repository source
* credentials. Set to <code>true</code> to overwrite the repository source
* credentials. The default value is <code>true</code>. </p>
*/
inline void SetShouldOverwrite(bool value) { m_shouldOverwriteHasBeenSet = true; m_shouldOverwrite = value; }
/**
* <p> Set to <code>false</code> to prevent overwriting the repository source
* credentials. Set to <code>true</code> to overwrite the repository source
* credentials. The default value is <code>true</code>. </p>
*/
inline ImportSourceCredentialsRequest& WithShouldOverwrite(bool value) { SetShouldOverwrite(value); return *this;}
private:
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_token;
bool m_tokenHasBeenSet;
ServerType m_serverType;
bool m_serverTypeHasBeenSet;
AuthType m_authType;
bool m_authTypeHasBeenSet;
bool m_shouldOverwrite;
bool m_shouldOverwriteHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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 <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ImportSourceCredentialsResult
{
public:
ImportSourceCredentialsResult();
ImportSourceCredentialsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ImportSourceCredentialsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline ImportSourceCredentialsResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline ImportSourceCredentialsResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the token. </p>
*/
inline ImportSourceCredentialsResult& WithArn(const char* value) { SetArn(value); return *this;}
private:
Aws::String m_arn;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API InvalidateProjectCacheRequest : public CodeBuildRequest
{
public:
InvalidateProjectCacheRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "InvalidateProjectCache"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline InvalidateProjectCacheRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline InvalidateProjectCacheRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the AWS CodeBuild build project that the cache is reset for.</p>
*/
inline InvalidateProjectCacheRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API InvalidateProjectCacheResult
{
public:
InvalidateProjectCacheResult();
InvalidateProjectCacheResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InvalidateProjectCacheResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,39 @@
/**
* 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>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class LanguageType
{
NOT_SET,
JAVA,
PYTHON,
NODE_JS,
RUBY,
GOLANG,
DOCKER,
ANDROID_,
DOTNET,
BASE,
PHP
};
namespace LanguageTypeMapper
{
AWS_CODEBUILD_API LanguageType GetLanguageTypeForName(const Aws::String& name);
AWS_CODEBUILD_API Aws::String GetNameForLanguageType(LanguageType value);
} // namespace LanguageTypeMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,263 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/BuildBatchFilter.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListBuildBatchesForProjectRequest : public CodeBuildRequest
{
public:
ListBuildBatchesForProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListBuildBatchesForProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the project.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project.</p>
*/
inline ListBuildBatchesForProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project.</p>
*/
inline ListBuildBatchesForProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project.</p>
*/
inline ListBuildBatchesForProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline const BuildBatchFilter& GetFilter() const{ return m_filter; }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline void SetFilter(const BuildBatchFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline void SetFilter(BuildBatchFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline ListBuildBatchesForProjectRequest& WithFilter(const BuildBatchFilter& value) { SetFilter(value); return *this;}
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline ListBuildBatchesForProjectRequest& WithFilter(BuildBatchFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>The maximum number of results to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return.</p>
*/
inline ListBuildBatchesForProjectRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline ListBuildBatchesForProjectRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline ListBuildBatchesForProjectRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline ListBuildBatchesForProjectRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline ListBuildBatchesForProjectRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatchesForProject</code>. This specifies the next item to return.
* To return the beginning of the list, exclude this parameter.</p>
*/
inline ListBuildBatchesForProjectRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
BuildBatchFilter m_filter;
bool m_filterHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListBuildBatchesForProjectResult
{
public:
ListBuildBatchesForProjectResult();
ListBuildBatchesForProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListBuildBatchesForProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_ids = value; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_ids = std::move(value); }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesForProjectResult& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesForProjectResult& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesForProjectResult& AddIds(const Aws::String& value) { m_ids.push_back(value); return *this; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesForProjectResult& AddIds(Aws::String&& value) { m_ids.push_back(std::move(value)); return *this; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesForProjectResult& AddIds(const char* value) { m_ids.push_back(value); return *this; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next
* set of items.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next
* set of items.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next
* set of items.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next
* set of items.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next
* set of items.</p>
*/
inline ListBuildBatchesForProjectResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next
* set of items.</p>
*/
inline ListBuildBatchesForProjectResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next
* set of items.</p>
*/
inline ListBuildBatchesForProjectResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_ids;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,219 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/codebuild/model/BuildBatchFilter.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListBuildBatchesRequest : public CodeBuildRequest
{
public:
ListBuildBatchesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListBuildBatches"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline const BuildBatchFilter& GetFilter() const{ return m_filter; }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline void SetFilter(const BuildBatchFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline void SetFilter(BuildBatchFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline ListBuildBatchesRequest& WithFilter(const BuildBatchFilter& value) { SetFilter(value); return *this;}
/**
* <p>A <code>BuildBatchFilter</code> object that specifies the filters for the
* search.</p>
*/
inline ListBuildBatchesRequest& WithFilter(BuildBatchFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>The maximum number of results to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return.</p>
*/
inline ListBuildBatchesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline ListBuildBatchesRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p>Specifies the sort order of the returned items. Valid values include:</p>
* <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in
* ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List
* the batch build identifiers in descending order by identifier.</p> </li> </ul>
*/
inline ListBuildBatchesRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline ListBuildBatchesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline ListBuildBatchesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous call to
* <code>ListBuildBatches</code>. This specifies the next item to return. To return
* the beginning of the list, exclude this parameter.</p>
*/
inline ListBuildBatchesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
BuildBatchFilter m_filter;
bool m_filterHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListBuildBatchesResult
{
public:
ListBuildBatchesResult();
ListBuildBatchesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListBuildBatchesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_ids = value; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_ids = std::move(value); }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesResult& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesResult& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesResult& AddIds(const Aws::String& value) { m_ids.push_back(value); return *this; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesResult& AddIds(Aws::String&& value) { m_ids.push_back(std::move(value)); return *this; }
/**
* <p>An array of strings that contains the batch build identifiers.</p>
*/
inline ListBuildBatchesResult& AddIds(const char* value) { m_ids.push_back(value); return *this; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatches</code> to retrieve the next set of
* items.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatches</code> to retrieve the next set of
* items.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatches</code> to retrieve the next set of
* items.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatches</code> to retrieve the next set of
* items.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatches</code> to retrieve the next set of
* items.</p>
*/
inline ListBuildBatchesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatches</code> to retrieve the next set of
* items.</p>
*/
inline ListBuildBatchesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If there are more items to return, this contains a token that is passed to a
* subsequent call to <code>ListBuildBatches</code> to retrieve the next set of
* items.</p>
*/
inline ListBuildBatchesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_ids;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,222 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListBuildsForProjectRequest : public CodeBuildRequest
{
public:
ListBuildsForProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListBuildsForProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline ListBuildsForProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline ListBuildsForProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the AWS CodeBuild project.</p>
*/
inline ListBuildsForProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline ListBuildsForProjectRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline ListBuildsForProjectRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListBuildsForProjectRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListBuildsForProjectRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListBuildsForProjectRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,150 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListBuildsForProjectResult
{
public:
ListBuildsForProjectResult();
ListBuildsForProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListBuildsForProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_ids = value; }
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_ids = std::move(value); }
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline ListBuildsForProjectResult& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline ListBuildsForProjectResult& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline ListBuildsForProjectResult& AddIds(const Aws::String& value) { m_ids.push_back(value); return *this; }
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline ListBuildsForProjectResult& AddIds(Aws::String&& value) { m_ids.push_back(std::move(value)); return *this; }
/**
* <p>A list of build IDs for the specified build project, with each build ID
* representing a single build.</p>
*/
inline ListBuildsForProjectResult& AddIds(const char* value) { m_ids.push_back(value); return *this; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListBuildsForProjectResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListBuildsForProjectResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListBuildsForProjectResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_ids;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,178 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListBuildsRequest : public CodeBuildRequest
{
public:
ListBuildsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListBuilds"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline ListBuildsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p>The order to list build IDs. Valid values include:</p> <ul> <li> <p>
* <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p>
* </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order
* by build ID.</p> </li> </ul>
*/
inline ListBuildsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListBuildsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListBuildsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListBuildsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,142 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListBuildsResult
{
public:
ListBuildsResult();
ListBuildsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListBuildsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_ids = value; }
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_ids = std::move(value); }
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline ListBuildsResult& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline ListBuildsResult& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline ListBuildsResult& AddIds(const Aws::String& value) { m_ids.push_back(value); return *this; }
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline ListBuildsResult& AddIds(Aws::String&& value) { m_ids.push_back(std::move(value)); return *this; }
/**
* <p>A list of build IDs, with each build ID representing a single build.</p>
*/
inline ListBuildsResult& AddIds(const char* value) { m_ids.push_back(value); return *this; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListBuildsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListBuildsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListBuildsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_ids;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* 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/codebuild/CodeBuildRequest.h>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListCuratedEnvironmentImagesRequest : public CodeBuildRequest
{
public:
ListCuratedEnvironmentImagesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListCuratedEnvironmentImages"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/AWSVector.h>
#include <aws/codebuild/model/EnvironmentPlatform.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListCuratedEnvironmentImagesResult
{
public:
ListCuratedEnvironmentImagesResult();
ListCuratedEnvironmentImagesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListCuratedEnvironmentImagesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about supported platforms for Docker images that are managed by
* AWS CodeBuild.</p>
*/
inline const Aws::Vector<EnvironmentPlatform>& GetPlatforms() const{ return m_platforms; }
/**
* <p>Information about supported platforms for Docker images that are managed by
* AWS CodeBuild.</p>
*/
inline void SetPlatforms(const Aws::Vector<EnvironmentPlatform>& value) { m_platforms = value; }
/**
* <p>Information about supported platforms for Docker images that are managed by
* AWS CodeBuild.</p>
*/
inline void SetPlatforms(Aws::Vector<EnvironmentPlatform>&& value) { m_platforms = std::move(value); }
/**
* <p>Information about supported platforms for Docker images that are managed by
* AWS CodeBuild.</p>
*/
inline ListCuratedEnvironmentImagesResult& WithPlatforms(const Aws::Vector<EnvironmentPlatform>& value) { SetPlatforms(value); return *this;}
/**
* <p>Information about supported platforms for Docker images that are managed by
* AWS CodeBuild.</p>
*/
inline ListCuratedEnvironmentImagesResult& WithPlatforms(Aws::Vector<EnvironmentPlatform>&& value) { SetPlatforms(std::move(value)); return *this;}
/**
* <p>Information about supported platforms for Docker images that are managed by
* AWS CodeBuild.</p>
*/
inline ListCuratedEnvironmentImagesResult& AddPlatforms(const EnvironmentPlatform& value) { m_platforms.push_back(value); return *this; }
/**
* <p>Information about supported platforms for Docker images that are managed by
* AWS CodeBuild.</p>
*/
inline ListCuratedEnvironmentImagesResult& AddPlatforms(EnvironmentPlatform&& value) { m_platforms.push_back(std::move(value)); return *this; }
private:
Aws::Vector<EnvironmentPlatform> m_platforms;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,255 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/codebuild/model/ProjectSortByType.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListProjectsRequest : public CodeBuildRequest
{
public:
ListProjectsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListProjects"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The criterion to be used to list build project names. Valid values
* include:</p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each
* build project was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>:
* List based on when information about each build project was last changed.</p>
* </li> <li> <p> <code>NAME</code>: List based on each build project's name.</p>
* </li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the
* build project names based on the preceding criteria.</p>
*/
inline const ProjectSortByType& GetSortBy() const{ return m_sortBy; }
/**
* <p>The criterion to be used to list build project names. Valid values
* include:</p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each
* build project was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>:
* List based on when information about each build project was last changed.</p>
* </li> <li> <p> <code>NAME</code>: List based on each build project's name.</p>
* </li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the
* build project names based on the preceding criteria.</p>
*/
inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
/**
* <p>The criterion to be used to list build project names. Valid values
* include:</p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each
* build project was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>:
* List based on when information about each build project was last changed.</p>
* </li> <li> <p> <code>NAME</code>: List based on each build project's name.</p>
* </li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the
* build project names based on the preceding criteria.</p>
*/
inline void SetSortBy(const ProjectSortByType& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
/**
* <p>The criterion to be used to list build project names. Valid values
* include:</p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each
* build project was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>:
* List based on when information about each build project was last changed.</p>
* </li> <li> <p> <code>NAME</code>: List based on each build project's name.</p>
* </li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the
* build project names based on the preceding criteria.</p>
*/
inline void SetSortBy(ProjectSortByType&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
/**
* <p>The criterion to be used to list build project names. Valid values
* include:</p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each
* build project was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>:
* List based on when information about each build project was last changed.</p>
* </li> <li> <p> <code>NAME</code>: List based on each build project's name.</p>
* </li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the
* build project names based on the preceding criteria.</p>
*/
inline ListProjectsRequest& WithSortBy(const ProjectSortByType& value) { SetSortBy(value); return *this;}
/**
* <p>The criterion to be used to list build project names. Valid values
* include:</p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each
* build project was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>:
* List based on when information about each build project was last changed.</p>
* </li> <li> <p> <code>NAME</code>: List based on each build project's name.</p>
* </li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the
* build project names based on the preceding criteria.</p>
*/
inline ListProjectsRequest& WithSortBy(ProjectSortByType&& value) { SetSortBy(std::move(value)); return *this;}
/**
* <p>The order in which to list build projects. Valid values include:</p> <ul>
* <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p>
* <code>DESCENDING</code>: List in descending order.</p> </li> </ul> <p>Use
* <code>sortBy</code> to specify the criterion to be used to list build project
* names.</p>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p>The order in which to list build projects. Valid values include:</p> <ul>
* <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p>
* <code>DESCENDING</code>: List in descending order.</p> </li> </ul> <p>Use
* <code>sortBy</code> to specify the criterion to be used to list build project
* names.</p>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p>The order in which to list build projects. Valid values include:</p> <ul>
* <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p>
* <code>DESCENDING</code>: List in descending order.</p> </li> </ul> <p>Use
* <code>sortBy</code> to specify the criterion to be used to list build project
* names.</p>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p>The order in which to list build projects. Valid values include:</p> <ul>
* <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p>
* <code>DESCENDING</code>: List in descending order.</p> </li> </ul> <p>Use
* <code>sortBy</code> to specify the criterion to be used to list build project
* names.</p>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p>The order in which to list build projects. Valid values include:</p> <ul>
* <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p>
* <code>DESCENDING</code>: List in descending order.</p> </li> </ul> <p>Use
* <code>sortBy</code> to specify the criterion to be used to list build project
* names.</p>
*/
inline ListProjectsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p>The order in which to list build projects. Valid values include:</p> <ul>
* <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p>
* <code>DESCENDING</code>: List in descending order.</p> </li> </ul> <p>Use
* <code>sortBy</code> to specify the criterion to be used to list build project
* names.</p>
*/
inline ListProjectsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>During a previous call, if there are more than 100 items in the list, only
* the first 100 items are returned, along with a unique string called a
* <i>nextToken</i>. To get the next batch of items in the list, call this
* operation again, adding the next token to the call. To get all of the items in
* the list, keep calling this operation with each subsequent next token that is
* returned, until no more next tokens are returned.</p>
*/
inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
ProjectSortByType m_sortBy;
bool m_sortByHasBeenSet;
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,150 @@
/**
* 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/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListProjectsResult
{
public:
ListProjectsResult();
ListProjectsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListProjectsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListProjectsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListProjectsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If there are more than 100 items in the list, only the first 100 items are
* returned, along with a unique string called a <i>nextToken</i>. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call.</p>
*/
inline ListProjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline const Aws::Vector<Aws::String>& GetProjects() const{ return m_projects; }
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline void SetProjects(const Aws::Vector<Aws::String>& value) { m_projects = value; }
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline void SetProjects(Aws::Vector<Aws::String>&& value) { m_projects = std::move(value); }
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline ListProjectsResult& WithProjects(const Aws::Vector<Aws::String>& value) { SetProjects(value); return *this;}
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline ListProjectsResult& WithProjects(Aws::Vector<Aws::String>&& value) { SetProjects(std::move(value)); return *this;}
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline ListProjectsResult& AddProjects(const Aws::String& value) { m_projects.push_back(value); return *this; }
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline ListProjectsResult& AddProjects(Aws::String&& value) { m_projects.push_back(std::move(value)); return *this; }
/**
* <p>The list of build project names, with each build project name representing a
* single build project.</p>
*/
inline ListProjectsResult& AddProjects(const char* value) { m_projects.push_back(value); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<Aws::String> m_projects;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,265 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <aws/codebuild/model/ReportGroupSortByType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListReportGroupsRequest : public CodeBuildRequest
{
public:
ListReportGroupsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListReportGroups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> Used to specify the order to sort the list of returned report groups. Valid
* values are <code>ASCENDING</code> and <code>DESCENDING</code>. </p>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p> Used to specify the order to sort the list of returned report groups. Valid
* values are <code>ASCENDING</code> and <code>DESCENDING</code>. </p>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p> Used to specify the order to sort the list of returned report groups. Valid
* values are <code>ASCENDING</code> and <code>DESCENDING</code>. </p>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p> Used to specify the order to sort the list of returned report groups. Valid
* values are <code>ASCENDING</code> and <code>DESCENDING</code>. </p>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p> Used to specify the order to sort the list of returned report groups. Valid
* values are <code>ASCENDING</code> and <code>DESCENDING</code>. </p>
*/
inline ListReportGroupsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p> Used to specify the order to sort the list of returned report groups. Valid
* values are <code>ASCENDING</code> and <code>DESCENDING</code>. </p>
*/
inline ListReportGroupsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p> The criterion to be used to list build report groups. Valid values include:
* </p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each report
* group was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>: List
* based on when each report group was last changed.</p> </li> <li> <p>
* <code>NAME</code>: List based on each report group's name.</p> </li> </ul>
*/
inline const ReportGroupSortByType& GetSortBy() const{ return m_sortBy; }
/**
* <p> The criterion to be used to list build report groups. Valid values include:
* </p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each report
* group was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>: List
* based on when each report group was last changed.</p> </li> <li> <p>
* <code>NAME</code>: List based on each report group's name.</p> </li> </ul>
*/
inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
/**
* <p> The criterion to be used to list build report groups. Valid values include:
* </p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each report
* group was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>: List
* based on when each report group was last changed.</p> </li> <li> <p>
* <code>NAME</code>: List based on each report group's name.</p> </li> </ul>
*/
inline void SetSortBy(const ReportGroupSortByType& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
/**
* <p> The criterion to be used to list build report groups. Valid values include:
* </p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each report
* group was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>: List
* based on when each report group was last changed.</p> </li> <li> <p>
* <code>NAME</code>: List based on each report group's name.</p> </li> </ul>
*/
inline void SetSortBy(ReportGroupSortByType&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
/**
* <p> The criterion to be used to list build report groups. Valid values include:
* </p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each report
* group was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>: List
* based on when each report group was last changed.</p> </li> <li> <p>
* <code>NAME</code>: List based on each report group's name.</p> </li> </ul>
*/
inline ListReportGroupsRequest& WithSortBy(const ReportGroupSortByType& value) { SetSortBy(value); return *this;}
/**
* <p> The criterion to be used to list build report groups. Valid values include:
* </p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each report
* group was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>: List
* based on when each report group was last changed.</p> </li> <li> <p>
* <code>NAME</code>: List based on each report group's name.</p> </li> </ul>
*/
inline ListReportGroupsRequest& WithSortBy(ReportGroupSortByType&& value) { SetSortBy(std::move(value)); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The maximum number of paginated report groups returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>ReportGroup</code> objects. The default value is 100. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of paginated report groups returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>ReportGroup</code> objects. The default value is 100. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of paginated report groups returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>ReportGroup</code> objects. The default value is 100. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of paginated report groups returned per response. Use
* <code>nextToken</code> to iterate pages in the list of returned
* <code>ReportGroup</code> objects. The default value is 100. </p>
*/
inline ListReportGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
ReportGroupSortByType m_sortBy;
bool m_sortByHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* 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/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListReportGroupsResult
{
public:
ListReportGroupsResult();
ListReportGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListReportGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline const Aws::Vector<Aws::String>& GetReportGroups() const{ return m_reportGroups; }
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline void SetReportGroups(const Aws::Vector<Aws::String>& value) { m_reportGroups = value; }
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline void SetReportGroups(Aws::Vector<Aws::String>&& value) { m_reportGroups = std::move(value); }
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline ListReportGroupsResult& WithReportGroups(const Aws::Vector<Aws::String>& value) { SetReportGroups(value); return *this;}
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline ListReportGroupsResult& WithReportGroups(Aws::Vector<Aws::String>&& value) { SetReportGroups(std::move(value)); return *this;}
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline ListReportGroupsResult& AddReportGroups(const Aws::String& value) { m_reportGroups.push_back(value); return *this; }
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline ListReportGroupsResult& AddReportGroups(Aws::String&& value) { m_reportGroups.push_back(std::move(value)); return *this; }
/**
* <p> The list of ARNs for the report groups in the current AWS account. </p>
*/
inline ListReportGroupsResult& AddReportGroups(const char* value) { m_reportGroups.push_back(value); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<Aws::String> m_reportGroups;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,285 @@
/**
* 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/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codebuild/model/SortOrderType.h>
#include <aws/codebuild/model/ReportFilter.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API ListReportsForReportGroupRequest : public CodeBuildRequest
{
public:
ListReportsForReportGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListReportsForReportGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline const Aws::String& GetReportGroupArn() const{ return m_reportGroupArn; }
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline bool ReportGroupArnHasBeenSet() const { return m_reportGroupArnHasBeenSet; }
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline void SetReportGroupArn(const Aws::String& value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn = value; }
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline void SetReportGroupArn(Aws::String&& value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn = std::move(value); }
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline void SetReportGroupArn(const char* value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn.assign(value); }
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline ListReportsForReportGroupRequest& WithReportGroupArn(const Aws::String& value) { SetReportGroupArn(value); return *this;}
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline ListReportsForReportGroupRequest& WithReportGroupArn(Aws::String&& value) { SetReportGroupArn(std::move(value)); return *this;}
/**
* <p> The ARN of the report group for which you want to return report ARNs. </p>
*/
inline ListReportsForReportGroupRequest& WithReportGroupArn(const char* value) { SetReportGroupArn(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportsForReportGroupRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportsForReportGroupRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportsForReportGroupRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> Use to specify whether the results are returned in ascending or descending
* order. </p>
*/
inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
/**
* <p> Use to specify whether the results are returned in ascending or descending
* order. </p>
*/
inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
/**
* <p> Use to specify whether the results are returned in ascending or descending
* order. </p>
*/
inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
/**
* <p> Use to specify whether the results are returned in ascending or descending
* order. </p>
*/
inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
/**
* <p> Use to specify whether the results are returned in ascending or descending
* order. </p>
*/
inline ListReportsForReportGroupRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
/**
* <p> Use to specify whether the results are returned in ascending or descending
* order. </p>
*/
inline ListReportsForReportGroupRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
/**
* <p> The maximum number of paginated reports in this report group returned per
* response. Use <code>nextToken</code> to iterate pages in the list of returned
* <code>Report</code> objects. The default value is 100. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of paginated reports in this report group returned per
* response. Use <code>nextToken</code> to iterate pages in the list of returned
* <code>Report</code> objects. The default value is 100. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of paginated reports in this report group returned per
* response. Use <code>nextToken</code> to iterate pages in the list of returned
* <code>Report</code> objects. The default value is 100. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of paginated reports in this report group returned per
* response. Use <code>nextToken</code> to iterate pages in the list of returned
* <code>Report</code> objects. The default value is 100. </p>
*/
inline ListReportsForReportGroupRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
*/
inline const ReportFilter& GetFilter() const{ return m_filter; }
/**
* <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
*/
inline void SetFilter(const ReportFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
*/
inline void SetFilter(ReportFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
*/
inline ListReportsForReportGroupRequest& WithFilter(const ReportFilter& value) { SetFilter(value); return *this;}
/**
* <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
*/
inline ListReportsForReportGroupRequest& WithFilter(ReportFilter&& value) { SetFilter(std::move(value)); return *this;}
private:
Aws::String m_reportGroupArn;
bool m_reportGroupArnHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
SortOrderType m_sortOrder;
bool m_sortOrderHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
ReportFilter m_filter;
bool m_filterHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* 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/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
class AWS_CODEBUILD_API ListReportsForReportGroupResult
{
public:
ListReportsForReportGroupResult();
ListReportsForReportGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListReportsForReportGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportsForReportGroupResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportsForReportGroupResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> During a previous call, the maximum number of items that can be returned is
* the value specified in <code>maxResults</code>. If there more items in the list,
* then a unique string called a <i>nextToken</i> is returned. To get the next
* batch of items in the list, call this operation again, adding the next token to
* the call. To get all of the items in the list, keep calling this operation with
* each subsequent next token that is returned, until no more next tokens are
* returned. </p>
*/
inline ListReportsForReportGroupResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The list of report ARNs. </p>
*/
inline const Aws::Vector<Aws::String>& GetReports() const{ return m_reports; }
/**
* <p> The list of report ARNs. </p>
*/
inline void SetReports(const Aws::Vector<Aws::String>& value) { m_reports = value; }
/**
* <p> The list of report ARNs. </p>
*/
inline void SetReports(Aws::Vector<Aws::String>&& value) { m_reports = std::move(value); }
/**
* <p> The list of report ARNs. </p>
*/
inline ListReportsForReportGroupResult& WithReports(const Aws::Vector<Aws::String>& value) { SetReports(value); return *this;}
/**
* <p> The list of report ARNs. </p>
*/
inline ListReportsForReportGroupResult& WithReports(Aws::Vector<Aws::String>&& value) { SetReports(std::move(value)); return *this;}
/**
* <p> The list of report ARNs. </p>
*/
inline ListReportsForReportGroupResult& AddReports(const Aws::String& value) { m_reports.push_back(value); return *this; }
/**
* <p> The list of report ARNs. </p>
*/
inline ListReportsForReportGroupResult& AddReports(Aws::String&& value) { m_reports.push_back(std::move(value)); return *this; }
/**
* <p> The list of report ARNs. </p>
*/
inline ListReportsForReportGroupResult& AddReports(const char* value) { m_reports.push_back(value); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<Aws::String> m_reports;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More