@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcConnector extends Object implements Serializable, Cloneable, StructuredPojo
Describes an App Runner VPC connector resource. A VPC connector describes the Amazon Virtual Private Cloud (Amazon VPC) that an App Runner service is associated with, and the subnets and security group that are used.
Multiple revisions of a connector might have the same Name
and different Revision
values.
At this time, App Runner supports only one revision per name.
Constructor and Description |
---|
VpcConnector() |
Modifier and Type | Method and Description |
---|---|
VpcConnector |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The time when the VPC connector was created.
|
Date |
getDeletedAt()
The time when the VPC connector was deleted.
|
List<String> |
getSecurityGroups()
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the
specified subnets.
|
String |
getStatus()
The current state of the VPC connector.
|
List<String> |
getSubnets()
A list of IDs of subnets that App Runner uses for your service.
|
String |
getVpcConnectorArn()
The Amazon Resource Name (ARN) of this VPC connector.
|
String |
getVpcConnectorName()
The customer-provided VPC connector name.
|
Integer |
getVpcConnectorRevision()
The revision of this VPC connector.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedAt(Date createdAt)
The time when the VPC connector was created.
|
void |
setDeletedAt(Date deletedAt)
The time when the VPC connector was deleted.
|
void |
setSecurityGroups(Collection<String> securityGroups)
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the
specified subnets.
|
void |
setStatus(String status)
The current state of the VPC connector.
|
void |
setSubnets(Collection<String> subnets)
A list of IDs of subnets that App Runner uses for your service.
|
void |
setVpcConnectorArn(String vpcConnectorArn)
The Amazon Resource Name (ARN) of this VPC connector.
|
void |
setVpcConnectorName(String vpcConnectorName)
The customer-provided VPC connector name.
|
void |
setVpcConnectorRevision(Integer vpcConnectorRevision)
The revision of this VPC connector.
|
String |
toString()
Returns a string representation of this object.
|
VpcConnector |
withCreatedAt(Date createdAt)
The time when the VPC connector was created.
|
VpcConnector |
withDeletedAt(Date deletedAt)
The time when the VPC connector was deleted.
|
VpcConnector |
withSecurityGroups(Collection<String> securityGroups)
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the
specified subnets.
|
VpcConnector |
withSecurityGroups(String... securityGroups)
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the
specified subnets.
|
VpcConnector |
withStatus(String status)
The current state of the VPC connector.
|
VpcConnector |
withStatus(VpcConnectorStatus status)
The current state of the VPC connector.
|
VpcConnector |
withSubnets(Collection<String> subnets)
A list of IDs of subnets that App Runner uses for your service.
|
VpcConnector |
withSubnets(String... subnets)
A list of IDs of subnets that App Runner uses for your service.
|
VpcConnector |
withVpcConnectorArn(String vpcConnectorArn)
The Amazon Resource Name (ARN) of this VPC connector.
|
VpcConnector |
withVpcConnectorName(String vpcConnectorName)
The customer-provided VPC connector name.
|
VpcConnector |
withVpcConnectorRevision(Integer vpcConnectorRevision)
The revision of this VPC connector.
|
public void setVpcConnectorName(String vpcConnectorName)
The customer-provided VPC connector name.
vpcConnectorName
- The customer-provided VPC connector name.public String getVpcConnectorName()
The customer-provided VPC connector name.
public VpcConnector withVpcConnectorName(String vpcConnectorName)
The customer-provided VPC connector name.
vpcConnectorName
- The customer-provided VPC connector name.public void setVpcConnectorArn(String vpcConnectorArn)
The Amazon Resource Name (ARN) of this VPC connector.
vpcConnectorArn
- The Amazon Resource Name (ARN) of this VPC connector.public String getVpcConnectorArn()
The Amazon Resource Name (ARN) of this VPC connector.
public VpcConnector withVpcConnectorArn(String vpcConnectorArn)
The Amazon Resource Name (ARN) of this VPC connector.
vpcConnectorArn
- The Amazon Resource Name (ARN) of this VPC connector.public void setVpcConnectorRevision(Integer vpcConnectorRevision)
The revision of this VPC connector. It's unique among all the active connectors ("Status": "ACTIVE"
)
that share the same Name
.
At this time, App Runner supports only one revision per name.
vpcConnectorRevision
- The revision of this VPC connector. It's unique among all the active connectors (
"Status": "ACTIVE"
) that share the same Name
. At this time, App Runner supports only one revision per name.
public Integer getVpcConnectorRevision()
The revision of this VPC connector. It's unique among all the active connectors ("Status": "ACTIVE"
)
that share the same Name
.
At this time, App Runner supports only one revision per name.
"Status": "ACTIVE"
) that share the same Name
. At this time, App Runner supports only one revision per name.
public VpcConnector withVpcConnectorRevision(Integer vpcConnectorRevision)
The revision of this VPC connector. It's unique among all the active connectors ("Status": "ACTIVE"
)
that share the same Name
.
At this time, App Runner supports only one revision per name.
vpcConnectorRevision
- The revision of this VPC connector. It's unique among all the active connectors (
"Status": "ACTIVE"
) that share the same Name
. At this time, App Runner supports only one revision per name.
public List<String> getSubnets()
A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon VPC.
public void setSubnets(Collection<String> subnets)
A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon VPC.
subnets
- A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon
VPC.public VpcConnector withSubnets(String... subnets)
A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon VPC.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon
VPC.public VpcConnector withSubnets(Collection<String> subnets)
A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon VPC.
subnets
- A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon
VPC.public List<String> getSecurityGroups()
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
public void setSecurityGroups(Collection<String> securityGroups)
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
securityGroups
- A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under
the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The
default security group allows all outbound traffic.public VpcConnector withSecurityGroups(String... securityGroups)
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under
the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The
default security group allows all outbound traffic.public VpcConnector withSecurityGroups(Collection<String> securityGroups)
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
securityGroups
- A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under
the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The
default security group allows all outbound traffic.public void setStatus(String status)
The current state of the VPC connector. If the status of a connector revision is INACTIVE
, it was
deleted and can't be used. Inactive connector revisions are permanently removed some time after they are deleted.
status
- The current state of the VPC connector. If the status of a connector revision is INACTIVE
, it
was deleted and can't be used. Inactive connector revisions are permanently removed some time after they
are deleted.VpcConnectorStatus
public String getStatus()
The current state of the VPC connector. If the status of a connector revision is INACTIVE
, it was
deleted and can't be used. Inactive connector revisions are permanently removed some time after they are deleted.
INACTIVE
,
it was deleted and can't be used. Inactive connector revisions are permanently removed some time after
they are deleted.VpcConnectorStatus
public VpcConnector withStatus(String status)
The current state of the VPC connector. If the status of a connector revision is INACTIVE
, it was
deleted and can't be used. Inactive connector revisions are permanently removed some time after they are deleted.
status
- The current state of the VPC connector. If the status of a connector revision is INACTIVE
, it
was deleted and can't be used. Inactive connector revisions are permanently removed some time after they
are deleted.VpcConnectorStatus
public VpcConnector withStatus(VpcConnectorStatus status)
The current state of the VPC connector. If the status of a connector revision is INACTIVE
, it was
deleted and can't be used. Inactive connector revisions are permanently removed some time after they are deleted.
status
- The current state of the VPC connector. If the status of a connector revision is INACTIVE
, it
was deleted and can't be used. Inactive connector revisions are permanently removed some time after they
are deleted.VpcConnectorStatus
public void setCreatedAt(Date createdAt)
The time when the VPC connector was created. It's in Unix time stamp format.
createdAt
- The time when the VPC connector was created. It's in Unix time stamp format.public Date getCreatedAt()
The time when the VPC connector was created. It's in Unix time stamp format.
public VpcConnector withCreatedAt(Date createdAt)
The time when the VPC connector was created. It's in Unix time stamp format.
createdAt
- The time when the VPC connector was created. It's in Unix time stamp format.public void setDeletedAt(Date deletedAt)
The time when the VPC connector was deleted. It's in Unix time stamp format.
deletedAt
- The time when the VPC connector was deleted. It's in Unix time stamp format.public Date getDeletedAt()
The time when the VPC connector was deleted. It's in Unix time stamp format.
public VpcConnector withDeletedAt(Date deletedAt)
The time when the VPC connector was deleted. It's in Unix time stamp format.
deletedAt
- The time when the VPC connector was deleted. It's in Unix time stamp format.public String toString()
toString
in class Object
Object.toString()
public VpcConnector clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.