Class AlertPolicyName (3.33.0)

public class AlertPolicyName implements ResourceName

Inheritance

Object > AlertPolicyName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String alertPolicy)

public static String format(String project, String alertPolicy)
Parameters
NameDescription
projectString
alertPolicyString
Returns
TypeDescription
String

formatFolderAlertPolicyName(String folder, String alertPolicy)

public static String formatFolderAlertPolicyName(String folder, String alertPolicy)
Parameters
NameDescription
folderString
alertPolicyString
Returns
TypeDescription
String

formatOrganizationAlertPolicyName(String organization, String alertPolicy)

public static String formatOrganizationAlertPolicyName(String organization, String alertPolicy)
Parameters
NameDescription
organizationString
alertPolicyString
Returns
TypeDescription
String

formatProjectAlertPolicyName(String project, String alertPolicy)

public static String formatProjectAlertPolicyName(String project, String alertPolicy)
Parameters
NameDescription
projectString
alertPolicyString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

newFolderAlertPolicyBuilder()

public static AlertPolicyName.FolderAlertPolicyBuilder newFolderAlertPolicyBuilder()
Returns
TypeDescription
AlertPolicyName.FolderAlertPolicyBuilder

newOrganizationAlertPolicyBuilder()

public static AlertPolicyName.OrganizationAlertPolicyBuilder newOrganizationAlertPolicyBuilder()
Returns
TypeDescription
AlertPolicyName.OrganizationAlertPolicyBuilder

newProjectAlertPolicyBuilder()

public static AlertPolicyName.Builder newProjectAlertPolicyBuilder()
Returns
TypeDescription
AlertPolicyName.Builder

of(String project, String alertPolicy)

public static AlertPolicyName of(String project, String alertPolicy)
Parameters
NameDescription
projectString
alertPolicyString
Returns
TypeDescription
AlertPolicyName

ofFolderAlertPolicyName(String folder, String alertPolicy)

public static AlertPolicyName ofFolderAlertPolicyName(String folder, String alertPolicy)
Parameters
NameDescription
folderString
alertPolicyString
Returns
TypeDescription
AlertPolicyName

ofOrganizationAlertPolicyName(String organization, String alertPolicy)

public static AlertPolicyName ofOrganizationAlertPolicyName(String organization, String alertPolicy)
Parameters
NameDescription
organizationString
alertPolicyString
Returns
TypeDescription
AlertPolicyName

ofProjectAlertPolicyName(String project, String alertPolicy)

public static AlertPolicyName ofProjectAlertPolicyName(String project, String alertPolicy)
Parameters
NameDescription
projectString
alertPolicyString
Returns
TypeDescription
AlertPolicyName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<AlertPolicyName> values)

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

Constructors

AlertPolicyName() (deprecated)

protected AlertPolicyName()

Methods

equals(Object o)

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

getAlertPolicy()

public String getAlertPolicy()
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>

getFolder()

public String getFolder()
Returns
TypeDescription
String

getOrganization()

public String getOrganization()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides