public String getImagePullCredentialsType() {
        return this.imagePullCredentialsType;
    }
<p>
The type of credentials CodeBuild uses to pull images in your build. There are two valid values:
</p>
<ul>
<li>
<p>
<code>CODEBUILD</code> specifies that CodeBuild uses its own credentials. This requires that you modify your ECR
repository policy to trust CodeBuild service principal.
</p>
</li>
<li>
<p>
<code>SERVICE_ROLE</code> specifies that CodeBuild uses your build project's service role.
</p>
</li>
</ul>
<p>
When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an
CodeBuild curated image, you must use CODEBUILD credentials.
</p>

@return The type of credentials CodeBuild uses to pull images in your build. There are two valid values: </p>
        <ul>
        <li>
        <p>
        <code>CODEBUILD</code> specifies that CodeBuild uses its own credentials. This requires that you modify
        your ECR repository policy to trust CodeBuild service principal.
        </p>
        </li>
        <li>
        <p>
        <code>SERVICE_ROLE</code> specifies that CodeBuild uses your build project's service role.
        </p>
        </li>
        </ul>
        <p>
        When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you
        use an CodeBuild curated image, you must use CODEBUILD credentials.
@see ImagePullCredentialsType
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ProjectEnvironment.java