
software.amazon.awssdk.services.codestar.CodeStarClient Maven / Gradle / Ivy
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.codestar;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.codestar.model.AssociateTeamMemberRequest;
import software.amazon.awssdk.services.codestar.model.AssociateTeamMemberResponse;
import software.amazon.awssdk.services.codestar.model.CodeStarException;
import software.amazon.awssdk.services.codestar.model.ConcurrentModificationException;
import software.amazon.awssdk.services.codestar.model.CreateProjectRequest;
import software.amazon.awssdk.services.codestar.model.CreateProjectResponse;
import software.amazon.awssdk.services.codestar.model.CreateUserProfileRequest;
import software.amazon.awssdk.services.codestar.model.CreateUserProfileResponse;
import software.amazon.awssdk.services.codestar.model.DeleteProjectRequest;
import software.amazon.awssdk.services.codestar.model.DeleteProjectResponse;
import software.amazon.awssdk.services.codestar.model.DeleteUserProfileRequest;
import software.amazon.awssdk.services.codestar.model.DeleteUserProfileResponse;
import software.amazon.awssdk.services.codestar.model.DescribeProjectRequest;
import software.amazon.awssdk.services.codestar.model.DescribeProjectResponse;
import software.amazon.awssdk.services.codestar.model.DescribeUserProfileRequest;
import software.amazon.awssdk.services.codestar.model.DescribeUserProfileResponse;
import software.amazon.awssdk.services.codestar.model.DisassociateTeamMemberRequest;
import software.amazon.awssdk.services.codestar.model.DisassociateTeamMemberResponse;
import software.amazon.awssdk.services.codestar.model.InvalidNextTokenException;
import software.amazon.awssdk.services.codestar.model.InvalidServiceRoleException;
import software.amazon.awssdk.services.codestar.model.LimitExceededException;
import software.amazon.awssdk.services.codestar.model.ListProjectsRequest;
import software.amazon.awssdk.services.codestar.model.ListProjectsResponse;
import software.amazon.awssdk.services.codestar.model.ListResourcesRequest;
import software.amazon.awssdk.services.codestar.model.ListResourcesResponse;
import software.amazon.awssdk.services.codestar.model.ListTagsForProjectRequest;
import software.amazon.awssdk.services.codestar.model.ListTagsForProjectResponse;
import software.amazon.awssdk.services.codestar.model.ListTeamMembersRequest;
import software.amazon.awssdk.services.codestar.model.ListTeamMembersResponse;
import software.amazon.awssdk.services.codestar.model.ListUserProfilesRequest;
import software.amazon.awssdk.services.codestar.model.ListUserProfilesResponse;
import software.amazon.awssdk.services.codestar.model.ProjectAlreadyExistsException;
import software.amazon.awssdk.services.codestar.model.ProjectConfigurationException;
import software.amazon.awssdk.services.codestar.model.ProjectCreationFailedException;
import software.amazon.awssdk.services.codestar.model.ProjectNotFoundException;
import software.amazon.awssdk.services.codestar.model.TagProjectRequest;
import software.amazon.awssdk.services.codestar.model.TagProjectResponse;
import software.amazon.awssdk.services.codestar.model.TeamMemberAlreadyAssociatedException;
import software.amazon.awssdk.services.codestar.model.TeamMemberNotFoundException;
import software.amazon.awssdk.services.codestar.model.UntagProjectRequest;
import software.amazon.awssdk.services.codestar.model.UntagProjectResponse;
import software.amazon.awssdk.services.codestar.model.UpdateProjectRequest;
import software.amazon.awssdk.services.codestar.model.UpdateProjectResponse;
import software.amazon.awssdk.services.codestar.model.UpdateTeamMemberRequest;
import software.amazon.awssdk.services.codestar.model.UpdateTeamMemberResponse;
import software.amazon.awssdk.services.codestar.model.UpdateUserProfileRequest;
import software.amazon.awssdk.services.codestar.model.UpdateUserProfileResponse;
import software.amazon.awssdk.services.codestar.model.UserProfileAlreadyExistsException;
import software.amazon.awssdk.services.codestar.model.UserProfileNotFoundException;
import software.amazon.awssdk.services.codestar.model.ValidationException;
/**
* Service client for accessing CodeStar. This can be created using the static {@link #builder()} method.
*
* AWS CodeStar
*
* This is the API reference for AWS CodeStar. This reference provides descriptions of the operations and data types for
* the AWS CodeStar API along with usage examples.
*
*
* You can use the AWS CodeStar API to work with:
*
*
* Projects and their resources, by calling the following:
*
*
* -
*
* DeleteProject
, which deletes a project.
*
*
* -
*
* DescribeProject
, which lists the attributes of a project.
*
*
* -
*
* ListProjects
, which lists all projects associated with your AWS account.
*
*
* -
*
* ListResources
, which lists the resources associated with a project.
*
*
* -
*
* ListTagsForProject
, which lists the tags associated with a project.
*
*
* -
*
* TagProject
, which adds tags to a project.
*
*
* -
*
* UntagProject
, which removes tags from a project.
*
*
* -
*
* UpdateProject
, which updates the attributes of a project.
*
*
*
*
* Teams and team members, by calling the following:
*
*
* -
*
* AssociateTeamMember
, which adds an IAM user to the team for a project.
*
*
* -
*
* DisassociateTeamMember
, which removes an IAM user from the team for a project.
*
*
* -
*
* ListTeamMembers
, which lists all the IAM users in the team for a project, including their roles and
* attributes.
*
*
* -
*
* UpdateTeamMember
, which updates a team member's attributes in a project.
*
*
*
*
* Users, by calling the following:
*
*
* -
*
* CreateUserProfile
, which creates a user profile that contains data associated with the user across all
* projects.
*
*
* -
*
* DeleteUserProfile
, which deletes all user profile information across all projects.
*
*
* -
*
* DescribeUserProfile
, which describes the profile of a user.
*
*
* -
*
* ListUserProfiles
, which lists all user profiles.
*
*
* -
*
* UpdateUserProfile
, which updates the profile for a user.
*
*
*
*/
@Generated("software.amazon.awssdk:codegen")
public interface CodeStarClient extends SdkClient {
String SERVICE_NAME = "codestar";
/**
* Create a {@link CodeStarClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static CodeStarClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link CodeStarClient}.
*/
static CodeStarClientBuilder builder() {
return new DefaultCodeStarClientBuilder();
}
/**
*
* Adds an IAM user to the team for an AWS CodeStar project.
*
*
* @param associateTeamMemberRequest
* @return Result of the AssociateTeamMember operation returned by the service.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws TeamMemberAlreadyAssociatedException
* The team member is already associated with a role in this project.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.AssociateTeamMember
* @see AWS
* API Documentation
*/
default AssociateTeamMemberResponse associateTeamMember(AssociateTeamMemberRequest associateTeamMemberRequest)
throws LimitExceededException, ProjectNotFoundException, TeamMemberAlreadyAssociatedException, ValidationException,
InvalidServiceRoleException, ProjectConfigurationException, ConcurrentModificationException, AwsServiceException,
SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Adds an IAM user to the team for an AWS CodeStar project.
*
*
*
* This is a convenience which creates an instance of the {@link AssociateTeamMemberRequest.Builder} avoiding the
* need to create one manually via {@link AssociateTeamMemberRequest#builder()}
*
*
* @param associateTeamMemberRequest
* A {@link Consumer} that will call methods on {@link AssociateTeamMemberRequest.Builder} to create a
* request.
* @return Result of the AssociateTeamMember operation returned by the service.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws TeamMemberAlreadyAssociatedException
* The team member is already associated with a role in this project.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.AssociateTeamMember
* @see AWS
* API Documentation
*/
default AssociateTeamMemberResponse associateTeamMember(
Consumer associateTeamMemberRequest) throws LimitExceededException,
ProjectNotFoundException, TeamMemberAlreadyAssociatedException, ValidationException, InvalidServiceRoleException,
ProjectConfigurationException, ConcurrentModificationException, AwsServiceException, SdkClientException,
CodeStarException {
return associateTeamMember(AssociateTeamMemberRequest.builder().applyMutation(associateTeamMemberRequest).build());
}
/**
*
* Creates a project, including project resources. This action creates a project based on a submitted project
* request. A set of source code files and a toolchain template file can be included with the project request. If
* these are not provided, an empty project is created.
*
*
* @param createProjectRequest
* @return Result of the CreateProject operation returned by the service.
* @throws ProjectAlreadyExistsException
* An AWS CodeStar project with the same ID already exists in this region for the AWS account. AWS CodeStar
* project IDs must be unique within a region for the AWS account.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws ProjectCreationFailedException
* The project creation request was valid, but a nonspecific exception or error occurred during project
* creation. The project could not be created in AWS CodeStar.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.CreateProject
* @see AWS API
* Documentation
*/
default CreateProjectResponse createProject(CreateProjectRequest createProjectRequest) throws ProjectAlreadyExistsException,
LimitExceededException, ValidationException, ProjectCreationFailedException, InvalidServiceRoleException,
ProjectConfigurationException, ConcurrentModificationException, AwsServiceException, SdkClientException,
CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a project, including project resources. This action creates a project based on a submitted project
* request. A set of source code files and a toolchain template file can be included with the project request. If
* these are not provided, an empty project is created.
*
*
*
* This is a convenience which creates an instance of the {@link CreateProjectRequest.Builder} avoiding the need to
* create one manually via {@link CreateProjectRequest#builder()}
*
*
* @param createProjectRequest
* A {@link Consumer} that will call methods on {@link CreateProjectRequest.Builder} to create a request.
* @return Result of the CreateProject operation returned by the service.
* @throws ProjectAlreadyExistsException
* An AWS CodeStar project with the same ID already exists in this region for the AWS account. AWS CodeStar
* project IDs must be unique within a region for the AWS account.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws ProjectCreationFailedException
* The project creation request was valid, but a nonspecific exception or error occurred during project
* creation. The project could not be created in AWS CodeStar.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.CreateProject
* @see AWS API
* Documentation
*/
default CreateProjectResponse createProject(Consumer createProjectRequest)
throws ProjectAlreadyExistsException, LimitExceededException, ValidationException, ProjectCreationFailedException,
InvalidServiceRoleException, ProjectConfigurationException, ConcurrentModificationException, AwsServiceException,
SdkClientException, CodeStarException {
return createProject(CreateProjectRequest.builder().applyMutation(createProjectRequest).build());
}
/**
*
* Creates a profile for a user that includes user preferences, such as the display name and email address
* assocciated with the user, in AWS CodeStar. The user profile is not project-specific. Information in the user
* profile is displayed wherever the user's information appears to other users in AWS CodeStar.
*
*
* @param createUserProfileRequest
* @return Result of the CreateUserProfile operation returned by the service.
* @throws UserProfileAlreadyExistsException
* A user profile with that name already exists in this region for the AWS account. AWS CodeStar user
* profile names must be unique within a region for the AWS account.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.CreateUserProfile
* @see AWS API
* Documentation
*/
default CreateUserProfileResponse createUserProfile(CreateUserProfileRequest createUserProfileRequest)
throws UserProfileAlreadyExistsException, ValidationException, AwsServiceException, SdkClientException,
CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a profile for a user that includes user preferences, such as the display name and email address
* assocciated with the user, in AWS CodeStar. The user profile is not project-specific. Information in the user
* profile is displayed wherever the user's information appears to other users in AWS CodeStar.
*
*
*
* This is a convenience which creates an instance of the {@link CreateUserProfileRequest.Builder} avoiding the need
* to create one manually via {@link CreateUserProfileRequest#builder()}
*
*
* @param createUserProfileRequest
* A {@link Consumer} that will call methods on {@link CreateUserProfileRequest.Builder} to create a request.
* @return Result of the CreateUserProfile operation returned by the service.
* @throws UserProfileAlreadyExistsException
* A user profile with that name already exists in this region for the AWS account. AWS CodeStar user
* profile names must be unique within a region for the AWS account.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.CreateUserProfile
* @see AWS API
* Documentation
*/
default CreateUserProfileResponse createUserProfile(Consumer createUserProfileRequest)
throws UserProfileAlreadyExistsException, ValidationException, AwsServiceException, SdkClientException,
CodeStarException {
return createUserProfile(CreateUserProfileRequest.builder().applyMutation(createUserProfileRequest).build());
}
/**
*
* Deletes a project, including project resources. Does not delete users associated with the project, but does
* delete the IAM roles that allowed access to the project.
*
*
* @param deleteProjectRequest
* @return Result of the DeleteProject operation returned by the service.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DeleteProject
* @see AWS API
* Documentation
*/
default DeleteProjectResponse deleteProject(DeleteProjectRequest deleteProjectRequest)
throws ConcurrentModificationException, ValidationException, InvalidServiceRoleException, AwsServiceException,
SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a project, including project resources. Does not delete users associated with the project, but does
* delete the IAM roles that allowed access to the project.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteProjectRequest.Builder} avoiding the need to
* create one manually via {@link DeleteProjectRequest#builder()}
*
*
* @param deleteProjectRequest
* A {@link Consumer} that will call methods on {@link DeleteProjectRequest.Builder} to create a request.
* @return Result of the DeleteProject operation returned by the service.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DeleteProject
* @see AWS API
* Documentation
*/
default DeleteProjectResponse deleteProject(Consumer deleteProjectRequest)
throws ConcurrentModificationException, ValidationException, InvalidServiceRoleException, AwsServiceException,
SdkClientException, CodeStarException {
return deleteProject(DeleteProjectRequest.builder().applyMutation(deleteProjectRequest).build());
}
/**
*
* Deletes a user profile in AWS CodeStar, including all personal preference data associated with that profile, such
* as display name and email address. It does not delete the history of that user, for example the history of
* commits made by that user.
*
*
* @param deleteUserProfileRequest
* @return Result of the DeleteUserProfile operation returned by the service.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DeleteUserProfile
* @see AWS API
* Documentation
*/
default DeleteUserProfileResponse deleteUserProfile(DeleteUserProfileRequest deleteUserProfileRequest)
throws ValidationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a user profile in AWS CodeStar, including all personal preference data associated with that profile, such
* as display name and email address. It does not delete the history of that user, for example the history of
* commits made by that user.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteUserProfileRequest.Builder} avoiding the need
* to create one manually via {@link DeleteUserProfileRequest#builder()}
*
*
* @param deleteUserProfileRequest
* A {@link Consumer} that will call methods on {@link DeleteUserProfileRequest.Builder} to create a request.
* @return Result of the DeleteUserProfile operation returned by the service.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DeleteUserProfile
* @see AWS API
* Documentation
*/
default DeleteUserProfileResponse deleteUserProfile(Consumer deleteUserProfileRequest)
throws ValidationException, AwsServiceException, SdkClientException, CodeStarException {
return deleteUserProfile(DeleteUserProfileRequest.builder().applyMutation(deleteUserProfileRequest).build());
}
/**
*
* Describes a project and its resources.
*
*
* @param describeProjectRequest
* @return Result of the DescribeProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DescribeProject
* @see AWS API
* Documentation
*/
default DescribeProjectResponse describeProject(DescribeProjectRequest describeProjectRequest)
throws ProjectNotFoundException, ValidationException, InvalidServiceRoleException, ProjectConfigurationException,
ConcurrentModificationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Describes a project and its resources.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeProjectRequest.Builder} avoiding the need
* to create one manually via {@link DescribeProjectRequest#builder()}
*
*
* @param describeProjectRequest
* A {@link Consumer} that will call methods on {@link DescribeProjectRequest.Builder} to create a request.
* @return Result of the DescribeProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DescribeProject
* @see AWS API
* Documentation
*/
default DescribeProjectResponse describeProject(Consumer describeProjectRequest)
throws ProjectNotFoundException, ValidationException, InvalidServiceRoleException, ProjectConfigurationException,
ConcurrentModificationException, AwsServiceException, SdkClientException, CodeStarException {
return describeProject(DescribeProjectRequest.builder().applyMutation(describeProjectRequest).build());
}
/**
*
* Describes a user in AWS CodeStar and the user attributes across all projects.
*
*
* @param describeUserProfileRequest
* @return Result of the DescribeUserProfile operation returned by the service.
* @throws UserProfileNotFoundException
* The user profile was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DescribeUserProfile
* @see AWS
* API Documentation
*/
default DescribeUserProfileResponse describeUserProfile(DescribeUserProfileRequest describeUserProfileRequest)
throws UserProfileNotFoundException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Describes a user in AWS CodeStar and the user attributes across all projects.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeUserProfileRequest.Builder} avoiding the
* need to create one manually via {@link DescribeUserProfileRequest#builder()}
*
*
* @param describeUserProfileRequest
* A {@link Consumer} that will call methods on {@link DescribeUserProfileRequest.Builder} to create a
* request.
* @return Result of the DescribeUserProfile operation returned by the service.
* @throws UserProfileNotFoundException
* The user profile was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DescribeUserProfile
* @see AWS
* API Documentation
*/
default DescribeUserProfileResponse describeUserProfile(
Consumer describeUserProfileRequest) throws UserProfileNotFoundException,
ValidationException, AwsServiceException, SdkClientException, CodeStarException {
return describeUserProfile(DescribeUserProfileRequest.builder().applyMutation(describeUserProfileRequest).build());
}
/**
*
* Removes a user from a project. Removing a user from a project also removes the IAM policies from that user that
* allowed access to the project and its resources. Disassociating a team member does not remove that user's profile
* from AWS CodeStar. It does not remove the user from IAM.
*
*
* @param disassociateTeamMemberRequest
* @return Result of the DisassociateTeamMember operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DisassociateTeamMember
* @see AWS API Documentation
*/
default DisassociateTeamMemberResponse disassociateTeamMember(DisassociateTeamMemberRequest disassociateTeamMemberRequest)
throws ProjectNotFoundException, ValidationException, InvalidServiceRoleException, ConcurrentModificationException,
AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Removes a user from a project. Removing a user from a project also removes the IAM policies from that user that
* allowed access to the project and its resources. Disassociating a team member does not remove that user's profile
* from AWS CodeStar. It does not remove the user from IAM.
*
*
*
* This is a convenience which creates an instance of the {@link DisassociateTeamMemberRequest.Builder} avoiding the
* need to create one manually via {@link DisassociateTeamMemberRequest#builder()}
*
*
* @param disassociateTeamMemberRequest
* A {@link Consumer} that will call methods on {@link DisassociateTeamMemberRequest.Builder} to create a
* request.
* @return Result of the DisassociateTeamMember operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.DisassociateTeamMember
* @see AWS API Documentation
*/
default DisassociateTeamMemberResponse disassociateTeamMember(
Consumer disassociateTeamMemberRequest) throws ProjectNotFoundException,
ValidationException, InvalidServiceRoleException, ConcurrentModificationException, AwsServiceException,
SdkClientException, CodeStarException {
return disassociateTeamMember(DisassociateTeamMemberRequest.builder().applyMutation(disassociateTeamMemberRequest)
.build());
}
/**
*
* Lists all projects in AWS CodeStar associated with your AWS account.
*
*
* @return Result of the ListProjects operation returned by the service.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListProjects
* @see #listProjects(ListProjectsRequest)
* @see AWS API
* Documentation
*/
default ListProjectsResponse listProjects() throws InvalidNextTokenException, ValidationException, AwsServiceException,
SdkClientException, CodeStarException {
return listProjects(ListProjectsRequest.builder().build());
}
/**
*
* Lists all projects in AWS CodeStar associated with your AWS account.
*
*
* @param listProjectsRequest
* @return Result of the ListProjects operation returned by the service.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListProjects
* @see AWS API
* Documentation
*/
default ListProjectsResponse listProjects(ListProjectsRequest listProjectsRequest) throws InvalidNextTokenException,
ValidationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all projects in AWS CodeStar associated with your AWS account.
*
*
*
* This is a convenience which creates an instance of the {@link ListProjectsRequest.Builder} avoiding the need to
* create one manually via {@link ListProjectsRequest#builder()}
*
*
* @param listProjectsRequest
* A {@link Consumer} that will call methods on {@link ListProjectsRequest.Builder} to create a request.
* @return Result of the ListProjects operation returned by the service.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListProjects
* @see AWS API
* Documentation
*/
default ListProjectsResponse listProjects(Consumer listProjectsRequest)
throws InvalidNextTokenException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
return listProjects(ListProjectsRequest.builder().applyMutation(listProjectsRequest).build());
}
/**
*
* Lists resources associated with a project in AWS CodeStar.
*
*
* @param listResourcesRequest
* @return Result of the ListResources operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListResources
* @see AWS API
* Documentation
*/
default ListResourcesResponse listResources(ListResourcesRequest listResourcesRequest) throws ProjectNotFoundException,
InvalidNextTokenException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Lists resources associated with a project in AWS CodeStar.
*
*
*
* This is a convenience which creates an instance of the {@link ListResourcesRequest.Builder} avoiding the need to
* create one manually via {@link ListResourcesRequest#builder()}
*
*
* @param listResourcesRequest
* A {@link Consumer} that will call methods on {@link ListResourcesRequest.Builder} to create a request.
* @return Result of the ListResources operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListResources
* @see AWS API
* Documentation
*/
default ListResourcesResponse listResources(Consumer listResourcesRequest)
throws ProjectNotFoundException, InvalidNextTokenException, ValidationException, AwsServiceException,
SdkClientException, CodeStarException {
return listResources(ListResourcesRequest.builder().applyMutation(listResourcesRequest).build());
}
/**
*
* Gets the tags for a project.
*
*
* @param listTagsForProjectRequest
* @return Result of the ListTagsForProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListTagsForProject
* @see AWS
* API Documentation
*/
default ListTagsForProjectResponse listTagsForProject(ListTagsForProjectRequest listTagsForProjectRequest)
throws ProjectNotFoundException, ValidationException, InvalidNextTokenException, AwsServiceException,
SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Gets the tags for a project.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForProjectRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForProjectRequest#builder()}
*
*
* @param listTagsForProjectRequest
* A {@link Consumer} that will call methods on {@link ListTagsForProjectRequest.Builder} to create a
* request.
* @return Result of the ListTagsForProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListTagsForProject
* @see AWS
* API Documentation
*/
default ListTagsForProjectResponse listTagsForProject(Consumer listTagsForProjectRequest)
throws ProjectNotFoundException, ValidationException, InvalidNextTokenException, AwsServiceException,
SdkClientException, CodeStarException {
return listTagsForProject(ListTagsForProjectRequest.builder().applyMutation(listTagsForProjectRequest).build());
}
/**
*
* Lists all team members associated with a project.
*
*
* @param listTeamMembersRequest
* @return Result of the ListTeamMembers operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListTeamMembers
* @see AWS API
* Documentation
*/
default ListTeamMembersResponse listTeamMembers(ListTeamMembersRequest listTeamMembersRequest)
throws ProjectNotFoundException, InvalidNextTokenException, ValidationException, AwsServiceException,
SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all team members associated with a project.
*
*
*
* This is a convenience which creates an instance of the {@link ListTeamMembersRequest.Builder} avoiding the need
* to create one manually via {@link ListTeamMembersRequest#builder()}
*
*
* @param listTeamMembersRequest
* A {@link Consumer} that will call methods on {@link ListTeamMembersRequest.Builder} to create a request.
* @return Result of the ListTeamMembers operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListTeamMembers
* @see AWS API
* Documentation
*/
default ListTeamMembersResponse listTeamMembers(Consumer listTeamMembersRequest)
throws ProjectNotFoundException, InvalidNextTokenException, ValidationException, AwsServiceException,
SdkClientException, CodeStarException {
return listTeamMembers(ListTeamMembersRequest.builder().applyMutation(listTeamMembersRequest).build());
}
/**
*
* Lists all the user profiles configured for your AWS account in AWS CodeStar.
*
*
* @return Result of the ListUserProfiles operation returned by the service.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListUserProfiles
* @see #listUserProfiles(ListUserProfilesRequest)
* @see AWS API
* Documentation
*/
default ListUserProfilesResponse listUserProfiles() throws InvalidNextTokenException, ValidationException,
AwsServiceException, SdkClientException, CodeStarException {
return listUserProfiles(ListUserProfilesRequest.builder().build());
}
/**
*
* Lists all the user profiles configured for your AWS account in AWS CodeStar.
*
*
* @param listUserProfilesRequest
* @return Result of the ListUserProfiles operation returned by the service.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListUserProfiles
* @see AWS API
* Documentation
*/
default ListUserProfilesResponse listUserProfiles(ListUserProfilesRequest listUserProfilesRequest)
throws InvalidNextTokenException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all the user profiles configured for your AWS account in AWS CodeStar.
*
*
*
* This is a convenience which creates an instance of the {@link ListUserProfilesRequest.Builder} avoiding the need
* to create one manually via {@link ListUserProfilesRequest#builder()}
*
*
* @param listUserProfilesRequest
* A {@link Consumer} that will call methods on {@link ListUserProfilesRequest.Builder} to create a request.
* @return Result of the ListUserProfiles operation returned by the service.
* @throws InvalidNextTokenException
* The next token is not valid.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.ListUserProfiles
* @see AWS API
* Documentation
*/
default ListUserProfilesResponse listUserProfiles(Consumer listUserProfilesRequest)
throws InvalidNextTokenException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
return listUserProfiles(ListUserProfilesRequest.builder().applyMutation(listUserProfilesRequest).build());
}
/**
*
* Adds tags to a project.
*
*
* @param tagProjectRequest
* @return Result of the TagProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.TagProject
* @see AWS API
* Documentation
*/
default TagProjectResponse tagProject(TagProjectRequest tagProjectRequest) throws ProjectNotFoundException,
ValidationException, LimitExceededException, ConcurrentModificationException, AwsServiceException,
SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Adds tags to a project.
*
*
*
* This is a convenience which creates an instance of the {@link TagProjectRequest.Builder} avoiding the need to
* create one manually via {@link TagProjectRequest#builder()}
*
*
* @param tagProjectRequest
* A {@link Consumer} that will call methods on {@link TagProjectRequest.Builder} to create a request.
* @return Result of the TagProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.TagProject
* @see AWS API
* Documentation
*/
default TagProjectResponse tagProject(Consumer tagProjectRequest) throws ProjectNotFoundException,
ValidationException, LimitExceededException, ConcurrentModificationException, AwsServiceException,
SdkClientException, CodeStarException {
return tagProject(TagProjectRequest.builder().applyMutation(tagProjectRequest).build());
}
/**
*
* Removes tags from a project.
*
*
* @param untagProjectRequest
* @return Result of the UntagProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UntagProject
* @see AWS API
* Documentation
*/
default UntagProjectResponse untagProject(UntagProjectRequest untagProjectRequest) throws ProjectNotFoundException,
ValidationException, LimitExceededException, ConcurrentModificationException, AwsServiceException,
SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Removes tags from a project.
*
*
*
* This is a convenience which creates an instance of the {@link UntagProjectRequest.Builder} avoiding the need to
* create one manually via {@link UntagProjectRequest#builder()}
*
*
* @param untagProjectRequest
* A {@link Consumer} that will call methods on {@link UntagProjectRequest.Builder} to create a request.
* @return Result of the UntagProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UntagProject
* @see AWS API
* Documentation
*/
default UntagProjectResponse untagProject(Consumer untagProjectRequest)
throws ProjectNotFoundException, ValidationException, LimitExceededException, ConcurrentModificationException,
AwsServiceException, SdkClientException, CodeStarException {
return untagProject(UntagProjectRequest.builder().applyMutation(untagProjectRequest).build());
}
/**
*
* Updates a project in AWS CodeStar.
*
*
* @param updateProjectRequest
* @return Result of the UpdateProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UpdateProject
* @see AWS API
* Documentation
*/
default UpdateProjectResponse updateProject(UpdateProjectRequest updateProjectRequest) throws ProjectNotFoundException,
ValidationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Updates a project in AWS CodeStar.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateProjectRequest.Builder} avoiding the need to
* create one manually via {@link UpdateProjectRequest#builder()}
*
*
* @param updateProjectRequest
* A {@link Consumer} that will call methods on {@link UpdateProjectRequest.Builder} to create a request.
* @return Result of the UpdateProject operation returned by the service.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UpdateProject
* @see AWS API
* Documentation
*/
default UpdateProjectResponse updateProject(Consumer updateProjectRequest)
throws ProjectNotFoundException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
return updateProject(UpdateProjectRequest.builder().applyMutation(updateProjectRequest).build());
}
/**
*
* Updates a team member's attributes in an AWS CodeStar project. For example, you can change a team member's role
* in the project, or change whether they have remote access to project resources.
*
*
* @param updateTeamMemberRequest
* @return Result of the UpdateTeamMember operation returned by the service.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws TeamMemberNotFoundException
* The specified team member was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UpdateTeamMember
* @see AWS API
* Documentation
*/
default UpdateTeamMemberResponse updateTeamMember(UpdateTeamMemberRequest updateTeamMemberRequest)
throws LimitExceededException, ProjectNotFoundException, ValidationException, InvalidServiceRoleException,
ProjectConfigurationException, ConcurrentModificationException, TeamMemberNotFoundException, AwsServiceException,
SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Updates a team member's attributes in an AWS CodeStar project. For example, you can change a team member's role
* in the project, or change whether they have remote access to project resources.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateTeamMemberRequest.Builder} avoiding the need
* to create one manually via {@link UpdateTeamMemberRequest#builder()}
*
*
* @param updateTeamMemberRequest
* A {@link Consumer} that will call methods on {@link UpdateTeamMemberRequest.Builder} to create a request.
* @return Result of the UpdateTeamMember operation returned by the service.
* @throws LimitExceededException
* A resource limit has been exceeded.
* @throws ProjectNotFoundException
* The specified AWS CodeStar project was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws InvalidServiceRoleException
* The service role is not valid.
* @throws ProjectConfigurationException
* Project configuration information is required but not specified.
* @throws ConcurrentModificationException
* Another modification is being made. That modification must complete before you can make your change.
* @throws TeamMemberNotFoundException
* The specified team member was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UpdateTeamMember
* @see AWS API
* Documentation
*/
default UpdateTeamMemberResponse updateTeamMember(Consumer updateTeamMemberRequest)
throws LimitExceededException, ProjectNotFoundException, ValidationException, InvalidServiceRoleException,
ProjectConfigurationException, ConcurrentModificationException, TeamMemberNotFoundException, AwsServiceException,
SdkClientException, CodeStarException {
return updateTeamMember(UpdateTeamMemberRequest.builder().applyMutation(updateTeamMemberRequest).build());
}
/**
*
* Updates a user's profile in AWS CodeStar. The user profile is not project-specific. Information in the user
* profile is displayed wherever the user's information appears to other users in AWS CodeStar.
*
*
* @param updateUserProfileRequest
* @return Result of the UpdateUserProfile operation returned by the service.
* @throws UserProfileNotFoundException
* The user profile was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UpdateUserProfile
* @see AWS API
* Documentation
*/
default UpdateUserProfileResponse updateUserProfile(UpdateUserProfileRequest updateUserProfileRequest)
throws UserProfileNotFoundException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
throw new UnsupportedOperationException();
}
/**
*
* Updates a user's profile in AWS CodeStar. The user profile is not project-specific. Information in the user
* profile is displayed wherever the user's information appears to other users in AWS CodeStar.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateUserProfileRequest.Builder} avoiding the need
* to create one manually via {@link UpdateUserProfileRequest#builder()}
*
*
* @param updateUserProfileRequest
* A {@link Consumer} that will call methods on {@link UpdateUserProfileRequest.Builder} to create a request.
* @return Result of the UpdateUserProfile operation returned by the service.
* @throws UserProfileNotFoundException
* The user profile was not found.
* @throws ValidationException
* The specified input is either not valid, or it could not be validated.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws CodeStarException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample CodeStarClient.UpdateUserProfile
* @see AWS API
* Documentation
*/
default UpdateUserProfileResponse updateUserProfile(Consumer updateUserProfileRequest)
throws UserProfileNotFoundException, ValidationException, AwsServiceException, SdkClientException, CodeStarException {
return updateUserProfile(UpdateUserProfileRequest.builder().applyMutation(updateUserProfileRequest).build());
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of("codestar");
}
}