# Google Cloud Network Services V1 Client - Class Abort (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class Abort.

Specification of how client requests are aborted as part of fault
injection before being sent to a destination.

Generated from protobuf message `google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ GrpcRoute \\ FaultInjectionPolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ http_status` | `int` The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive. |
| `↳ percentage` | `int` The percentage of traffic which will be aborted. The value must be between \[0, 100\] |

### getHttpStatus

The HTTP status code used to abort the request.

The value must be between 200 and 599 inclusive.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasHttpStatus

### clearHttpStatus

### setHttpStatus

The HTTP status code used to abort the request.

The value must be between 200 and 599 inclusive.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPercentage

The percentage of traffic which will be aborted.

The value must be between \[0, 100\]

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasPercentage

### clearPercentage

### setPercentage

The percentage of traffic which will be aborted.

The value must be between \[0, 100\]

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |