Class ViolationName (0.3.0)

public class ViolationName implements ResourceName

Inheritance

Object > ViolationName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String organization, String location, String customer, String workload, String violation)

public static String format(String organization, String location, String customer, String workload, String violation)
Parameters
NameDescription
organizationString
locationString
customerString
workloadString
violationString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String organization, String location, String customer, String workload, String violation)

public static ViolationName of(String organization, String location, String customer, String workload, String violation)
Parameters
NameDescription
organizationString
locationString
customerString
workloadString
violationString
Returns
TypeDescription
ViolationName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<ViolationName> values)

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

Constructors

ViolationName() (deprecated)

protected ViolationName()

Methods

equals(Object o)

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

getCustomer()

public String getCustomer()
Returns
TypeDescription
String

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>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getOrganization()

public String getOrganization()
Returns
TypeDescription
String

getViolation()

public String getViolation()
Returns
TypeDescription
String

getWorkload()

public String getWorkload()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides