# Google Cloud Cloud Controls Partner V1beta Client - Class CreateCustomerRequest (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.0 0.2.2 0.1.4

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Cloud Controls Partner V1beta Client class CreateCustomerRequest.

Request to create a customer

Generated from protobuf message `google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest`

## Namespace

Google \\ Cloud \\ CloudControlsPartner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent resource Format: `organizations/{organization}/locations/{location}` |
| `↳ customer` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Customer` Required. The customer to create. |
| `↳ customer_id` | `string` Required. The customer id to use for the customer, which will become the final component of the customer's resource name. The specified value must be a valid Google cloud organization id. |

### getParent

Required. Parent resource
Format: `organizations/{organization}/locations/{location}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. Parent resource
Format: `organizations/{organization}/locations/{location}`

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

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

### getCustomer

Required. The customer to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Customer|null` |   |

### hasCustomer

### clearCustomer

### setCustomer

Required. The customer to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Customer` |

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

### getCustomerId

Required. The customer id to use for the customer, which will become the
final component of the customer's resource name. The specified value must
be a valid Google cloud organization id.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCustomerId

Required. The customer id to use for the customer, which will become the
final component of the customer's resource name. The specified value must
be a valid Google cloud organization id.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent resource Format: `organizations/{organization}/locations/{location}` Please see CloudControlsPartnerCoreClient::organizationLocationName() for help formatting this field. |
| `customer` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Customer` Required. The customer to create. |
| `customerId` | `string` Required. The customer id to use for the customer, which will become the final component of the customer's resource name. The specified value must be a valid Google cloud organization id. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.CreateCustomerRequest` |   |