Class VpnGatewaysSettings.Builder (1.6.0-beta)

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

Builder for VpnGatewaysSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > VpnGatewaysSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(VpnGatewaysSettings settings)

protected Builder(VpnGatewaysSettings settings)
Parameter
NameDescription
settingsVpnGatewaysSettings

Builder(VpnGatewaysStubSettings.Builder stubSettings)

protected Builder(VpnGatewaysStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsVpnGatewaysStubSettings.Builder

Methods

aggregatedListSettings()

public PagedCallSettings.Builder<AggregatedListVpnGatewaysRequest,VpnGatewayAggregatedList,VpnGatewaysClient.AggregatedListPagedResponse> aggregatedListSettings()

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

Returns
TypeDescription
Builder<AggregatedListVpnGatewaysRequest,VpnGatewayAggregatedList,AggregatedListPagedResponse>

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

public VpnGatewaysSettings.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
VpnGatewaysSettings.Builder

build()

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

deleteOperationSettings()

public OperationCallSettings.Builder<DeleteVpnGatewayRequest,Operation,Operation> deleteOperationSettings()

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

Returns
TypeDescription
Builder<DeleteVpnGatewayRequest,Operation,Operation>

deleteSettings()

public UnaryCallSettings.Builder<DeleteVpnGatewayRequest,Operation> deleteSettings()

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

Returns
TypeDescription
Builder<DeleteVpnGatewayRequest,Operation>

getSettings()

public UnaryCallSettings.Builder<GetVpnGatewayRequest,VpnGateway> getSettings()

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

Returns
TypeDescription
Builder<GetVpnGatewayRequest,VpnGateway>

getStatusSettings()

public UnaryCallSettings.Builder<GetStatusVpnGatewayRequest,VpnGatewaysGetStatusResponse> getStatusSettings()

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

Returns
TypeDescription
Builder<GetStatusVpnGatewayRequest,VpnGatewaysGetStatusResponse>

getStubSettingsBuilder()

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

insertOperationSettings()

public OperationCallSettings.Builder<InsertVpnGatewayRequest,Operation,Operation> insertOperationSettings()

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

Returns
TypeDescription
Builder<InsertVpnGatewayRequest,Operation,Operation>

insertSettings()

public UnaryCallSettings.Builder<InsertVpnGatewayRequest,Operation> insertSettings()

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

Returns
TypeDescription
Builder<InsertVpnGatewayRequest,Operation>

listSettings()

public PagedCallSettings.Builder<ListVpnGatewaysRequest,VpnGatewayList,VpnGatewaysClient.ListPagedResponse> listSettings()

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

Returns
TypeDescription
Builder<ListVpnGatewaysRequest,VpnGatewayList,ListPagedResponse>

setLabelsOperationSettings()

public OperationCallSettings.Builder<SetLabelsVpnGatewayRequest,Operation,Operation> setLabelsOperationSettings()

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

Returns
TypeDescription
Builder<SetLabelsVpnGatewayRequest,Operation,Operation>

setLabelsSettings()

public UnaryCallSettings.Builder<SetLabelsVpnGatewayRequest,Operation> setLabelsSettings()

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

Returns
TypeDescription
Builder<SetLabelsVpnGatewayRequest,Operation>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsVpnGatewayRequest,TestPermissionsResponse> testIamPermissionsSettings()

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

Returns
TypeDescription
Builder<TestIamPermissionsVpnGatewayRequest,TestPermissionsResponse>