Class OrgPolicySettings.Builder (2.37.0)

public static class OrgPolicySettings.Builder extends ClientSettings.Builder<OrgPolicySettings,OrgPolicySettings.Builder>

Builder for OrgPolicySettings.

Inheritance

java.lang.Object > ClientSettings.Builder > OrgPolicySettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(OrgPolicySettings settings)

protected Builder(OrgPolicySettings settings)
Parameter
NameDescription
settingsOrgPolicySettings

Builder(OrgPolicyStubSettings.Builder stubSettings)

protected Builder(OrgPolicyStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsOrgPolicyStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public OrgPolicySettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
OrgPolicySettings.Builder

build()

public OrgPolicySettings build()
Returns
TypeDescription
OrgPolicySettings
Overrides
Exceptions
TypeDescription
IOException

createCustomConstraintSettings()

public UnaryCallSettings.Builder<CreateCustomConstraintRequest,CustomConstraint> createCustomConstraintSettings()

Returns the builder for the settings used for calls to createCustomConstraint.

Returns
TypeDescription
Builder<CreateCustomConstraintRequest,CustomConstraint>

createPolicySettings()

public UnaryCallSettings.Builder<CreatePolicyRequest,Policy> createPolicySettings()

Returns the builder for the settings used for calls to createPolicy.

Returns
TypeDescription
Builder<CreatePolicyRequest,Policy>

deleteCustomConstraintSettings()

public UnaryCallSettings.Builder<DeleteCustomConstraintRequest,Empty> deleteCustomConstraintSettings()

Returns the builder for the settings used for calls to deleteCustomConstraint.

Returns
TypeDescription
Builder<DeleteCustomConstraintRequest,Empty>

deletePolicySettings()

public UnaryCallSettings.Builder<DeletePolicyRequest,Empty> deletePolicySettings()

Returns the builder for the settings used for calls to deletePolicy.

Returns
TypeDescription
Builder<DeletePolicyRequest,Empty>

getCustomConstraintSettings()

public UnaryCallSettings.Builder<GetCustomConstraintRequest,CustomConstraint> getCustomConstraintSettings()

Returns the builder for the settings used for calls to getCustomConstraint.

Returns
TypeDescription
Builder<GetCustomConstraintRequest,CustomConstraint>

getEffectivePolicySettings()

public UnaryCallSettings.Builder<GetEffectivePolicyRequest,Policy> getEffectivePolicySettings()

Returns the builder for the settings used for calls to getEffectivePolicy.

Returns
TypeDescription
Builder<GetEffectivePolicyRequest,Policy>

getPolicySettings()

public UnaryCallSettings.Builder<GetPolicyRequest,Policy> getPolicySettings()

Returns the builder for the settings used for calls to getPolicy.

Returns
TypeDescription
Builder<GetPolicyRequest,Policy>

getStubSettingsBuilder()

public OrgPolicyStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
OrgPolicyStubSettings.Builder

listConstraintsSettings()

public PagedCallSettings.Builder<ListConstraintsRequest,ListConstraintsResponse,OrgPolicyClient.ListConstraintsPagedResponse> listConstraintsSettings()

Returns the builder for the settings used for calls to listConstraints.

Returns
TypeDescription
Builder<ListConstraintsRequest,ListConstraintsResponse,ListConstraintsPagedResponse>

listCustomConstraintsSettings()

public PagedCallSettings.Builder<ListCustomConstraintsRequest,ListCustomConstraintsResponse,OrgPolicyClient.ListCustomConstraintsPagedResponse> listCustomConstraintsSettings()

Returns the builder for the settings used for calls to listCustomConstraints.

Returns
TypeDescription
Builder<ListCustomConstraintsRequest,ListCustomConstraintsResponse,ListCustomConstraintsPagedResponse>

listPoliciesSettings()

public PagedCallSettings.Builder<ListPoliciesRequest,ListPoliciesResponse,OrgPolicyClient.ListPoliciesPagedResponse> listPoliciesSettings()

Returns the builder for the settings used for calls to listPolicies.

Returns
TypeDescription
Builder<ListPoliciesRequest,ListPoliciesResponse,ListPoliciesPagedResponse>

updateCustomConstraintSettings()

public UnaryCallSettings.Builder<UpdateCustomConstraintRequest,CustomConstraint> updateCustomConstraintSettings()

Returns the builder for the settings used for calls to updateCustomConstraint.

Returns
TypeDescription
Builder<UpdateCustomConstraintRequest,CustomConstraint>

updatePolicySettings()

public UnaryCallSettings.Builder<UpdatePolicyRequest,Policy> updatePolicySettings()

Returns the builder for the settings used for calls to updatePolicy.

Returns
TypeDescription
Builder<UpdatePolicyRequest,Policy>