Class PolicyName (2.3.4)

public class PolicyName implements ResourceName

Inheritance

Object > PolicyName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String policy)

public static String format(String project, String policy)
Parameters
NameDescription
projectString
policyString
Returns
TypeDescription
String

formatFolderPolicyName(String folder, String policy)

public static String formatFolderPolicyName(String folder, String policy)
Parameters
NameDescription
folderString
policyString
Returns
TypeDescription
String

formatOrganizationPolicyName(String organization, String policy)

public static String formatOrganizationPolicyName(String organization, String policy)
Parameters
NameDescription
organizationString
policyString
Returns
TypeDescription
String

formatProjectPolicyName(String project, String policy)

public static String formatProjectPolicyName(String project, String policy)
Parameters
NameDescription
projectString
policyString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

newFolderPolicyBuilder()

public static PolicyName.FolderPolicyBuilder newFolderPolicyBuilder()
Returns
TypeDescription
PolicyName.FolderPolicyBuilder

newOrganizationPolicyBuilder()

public static PolicyName.OrganizationPolicyBuilder newOrganizationPolicyBuilder()
Returns
TypeDescription
PolicyName.OrganizationPolicyBuilder

newProjectPolicyBuilder()

public static PolicyName.Builder newProjectPolicyBuilder()
Returns
TypeDescription
PolicyName.Builder

of(String project, String policy)

public static PolicyName of(String project, String policy)
Parameters
NameDescription
projectString
policyString
Returns
TypeDescription
PolicyName

ofFolderPolicyName(String folder, String policy)

public static PolicyName ofFolderPolicyName(String folder, String policy)
Parameters
NameDescription
folderString
policyString
Returns
TypeDescription
PolicyName

ofOrganizationPolicyName(String organization, String policy)

public static PolicyName ofOrganizationPolicyName(String organization, String policy)
Parameters
NameDescription
organizationString
policyString
Returns
TypeDescription
PolicyName

ofProjectPolicyName(String project, String policy)

public static PolicyName ofProjectPolicyName(String project, String policy)
Parameters
NameDescription
projectString
policyString
Returns
TypeDescription
PolicyName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<PolicyName> values)

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

Constructors

PolicyName()

protected PolicyName()

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>

getFolder()

public String getFolder()
Returns
TypeDescription
String

getOrganization()

public String getOrganization()
Returns
TypeDescription
String

getPolicy()

public String getPolicy()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides