@Generated(value="software.amazon.awssdk:codegen") public final class SetRepositoryPolicyRequest extends EcrPublicRequest implements ToCopyableBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
SetRepositoryPolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SetRepositoryPolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
force()
If the policy that you want to set on a repository policy would prevent you from setting another policy in the
future, you must force the SetRepositoryPolicy operation.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyText()
The JSON repository policy text to apply to the repository.
|
String |
registryId()
The Amazon Web Services account ID that's associated with the registry that contains the repository.
|
String |
repositoryName()
The name of the repository to receive the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SetRepositoryPolicyRequest.Builder> |
serializableBuilderClass() |
SetRepositoryPolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String registryId()
The Amazon Web Services account ID that's associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
public final String repositoryName()
The name of the repository to receive the policy.
public final String policyText()
The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
public final Boolean force()
If the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This prevents accidental repository lockouts.
public SetRepositoryPolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>toBuilder in class EcrPublicRequestpublic static SetRepositoryPolicyRequest.Builder builder()
public static Class<? extends SetRepositoryPolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.