public final void setCredentials(AWSCredentialsProvider credentialsProvider) {
        this.credentials = credentialsProvider;
    }
Sets the AWSCredentialsProvider used by the client. If not specified the default is {@link
DefaultAWSCredentialsProviderChain}.

@param credentialsProvider New AWSCredentialsProvider to use.
aws-java-sdk-core/src/main/java/com/amazonaws/client/builder/AwsClientBuilder.java