@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerServiceECRImagePullerRole extends Object implements Serializable, Cloneable, StructuredPojo
Describes the activation status of the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.
When activated, Lightsail creates an Identity and Access Management (IAM) role for the specified Lightsail container service. You can use the ARN of the role to create a trust relationship between your Lightsail container service and an Amazon ECR private repository in your Amazon Web Services account. This allows your container service to pull images from Amazon ECR private repositories. For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.
Constructor and Description |
---|
ContainerServiceECRImagePullerRole() |
Modifier and Type | Method and Description |
---|---|
ContainerServiceECRImagePullerRole |
clone() |
boolean |
equals(Object obj) |
Boolean |
getIsActive()
A Boolean value that indicates whether the role is activated.
|
String |
getPrincipalArn()
The Amazon Resource Name (ARN) of the role, if it is activated.
|
int |
hashCode() |
Boolean |
isActive()
A Boolean value that indicates whether the role is activated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIsActive(Boolean isActive)
A Boolean value that indicates whether the role is activated.
|
void |
setPrincipalArn(String principalArn)
The Amazon Resource Name (ARN) of the role, if it is activated.
|
String |
toString()
Returns a string representation of this object.
|
ContainerServiceECRImagePullerRole |
withIsActive(Boolean isActive)
A Boolean value that indicates whether the role is activated.
|
ContainerServiceECRImagePullerRole |
withPrincipalArn(String principalArn)
The Amazon Resource Name (ARN) of the role, if it is activated.
|
public void setIsActive(Boolean isActive)
A Boolean value that indicates whether the role is activated.
isActive
- A Boolean value that indicates whether the role is activated.public Boolean getIsActive()
A Boolean value that indicates whether the role is activated.
public ContainerServiceECRImagePullerRole withIsActive(Boolean isActive)
A Boolean value that indicates whether the role is activated.
isActive
- A Boolean value that indicates whether the role is activated.public Boolean isActive()
A Boolean value that indicates whether the role is activated.
public void setPrincipalArn(String principalArn)
The Amazon Resource Name (ARN) of the role, if it is activated.
principalArn
- The Amazon Resource Name (ARN) of the role, if it is activated.public String getPrincipalArn()
The Amazon Resource Name (ARN) of the role, if it is activated.
public ContainerServiceECRImagePullerRole withPrincipalArn(String principalArn)
The Amazon Resource Name (ARN) of the role, if it is activated.
principalArn
- The Amazon Resource Name (ARN) of the role, if it is activated.public String toString()
toString
in class Object
Object.toString()
public ContainerServiceECRImagePullerRole clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.