This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codebuild/include/aws/codebuild/model/RetryBuildRequest.h

162 lines
6.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
#include <aws/codebuild/CodeBuildRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeBuild
{
namespace Model
{
/**
*/
class AWS_CODEBUILD_API RetryBuildRequest : public CodeBuildRequest
{
public:
RetryBuildRequest();
// 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 "RetryBuild"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline RetryBuildRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline RetryBuildRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>Specifies the identifier of the build to restart.</p>
*/
inline RetryBuildRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline RetryBuildRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline RetryBuildRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
/**
* <p>A unique, case sensitive identifier you provide to ensure the idempotency of
* the <code>RetryBuild</code> request. The token is included in the
* <code>RetryBuild</code> request and is valid for five minutes. If you repeat the
* <code>RetryBuild</code> request with the same token, but change a parameter, AWS
* CodeBuild returns a parameter mismatch error.</p>
*/
inline RetryBuildRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_idempotencyToken;
bool m_idempotencyTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws