public final class ImageId extends ResourceId
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getImage()
Returns the name of the image.
|
String |
getSelfLink()
Returns a fully qualified URL to the entity.
|
int |
hashCode() |
static ImageId |
of(String image)
Returns an image identity given the image name.
|
static ImageId |
of(String project,
String image)
Returns an image identity given project and image names.
|
getProject, toString
public String getImage()
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.public String getSelfLink()
ResourceId
getSelfLink
in class ResourceId
public static ImageId of(String image)
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.public static ImageId of(String project, String image)
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.Copyright © 2019 Google LLC. All rights reserved.