Class SnapshotName (1.14.0)

public class SnapshotName implements ResourceName

Inheritance

Object > SnapshotName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String instance, String snapshot)

public static String format(String project, String location, String instance, String snapshot)
Parameters
NameDescription
projectString
locationString
instanceString
snapshotString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static SnapshotName.Builder newBuilder()
Returns
TypeDescription
SnapshotName.Builder

of(String project, String location, String instance, String snapshot)

public static SnapshotName of(String project, String location, String instance, String snapshot)
Parameters
NameDescription
projectString
locationString
instanceString
snapshotString
Returns
TypeDescription
SnapshotName

parse(String formattedString)

public static SnapshotName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
SnapshotName

parseList(List<String> formattedStrings)

public static List<SnapshotName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<SnapshotName>

toStringList(List<SnapshotName> values)

public static List<String> toStringList(List<SnapshotName> values)
Parameter
NameDescription
valuesList<SnapshotName>
Returns
TypeDescription
List<String>

Constructors

SnapshotName()

protected SnapshotName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getInstance()

public String getInstance()
Returns
TypeDescription
String

getLocation()

public String getLocation()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

getSnapshot()

public String getSnapshot()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public SnapshotName.Builder toBuilder()
Returns
TypeDescription
SnapshotName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides