All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.DescribeNetworkInterfacePermissionsResponseBody Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeNetworkInterfacePermissionsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeNetworkInterfacePermissionsResponseBody

*/ public class DescribeNetworkInterfacePermissionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NetworkInterfacePermissions") private NetworkInterfacePermissions networkInterfacePermissions; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeNetworkInterfacePermissionsResponseBody(Builder builder) { this.networkInterfacePermissions = builder.networkInterfacePermissions; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeNetworkInterfacePermissionsResponseBody create() { return builder().build(); } /** * @return networkInterfacePermissions */ public NetworkInterfacePermissions getNetworkInterfacePermissions() { return this.networkInterfacePermissions; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private NetworkInterfacePermissions networkInterfacePermissions; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** *

Details about the ENI permissions.

*/ public Builder networkInterfacePermissions(NetworkInterfacePermissions networkInterfacePermissions) { this.networkInterfacePermissions = networkInterfacePermissions; return this; } /** *

The page number.

* * example: *

1

*/ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** *

The number of entries per page.

* * example: *

10

*/ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** *

The request ID.

* * example: *

0FCD3DEF-63D3-4605-A818-805C8BD7DB87

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The total number of entries returned.

* * example: *

1

*/ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeNetworkInterfacePermissionsResponseBody build() { return new DescribeNetworkInterfacePermissionsResponseBody(this); } } /** * * {@link DescribeNetworkInterfacePermissionsResponseBody} extends {@link TeaModel} * *

DescribeNetworkInterfacePermissionsResponseBody

*/ public static class NetworkInterfacePermission extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountId") private Long accountId; @com.aliyun.core.annotation.NameInMap("NetworkInterfaceId") private String networkInterfaceId; @com.aliyun.core.annotation.NameInMap("NetworkInterfacePermissionId") private String networkInterfacePermissionId; @com.aliyun.core.annotation.NameInMap("Permission") private String permission; @com.aliyun.core.annotation.NameInMap("PermissionState") private String permissionState; @com.aliyun.core.annotation.NameInMap("ServiceName") private String serviceName; private NetworkInterfacePermission(Builder builder) { this.accountId = builder.accountId; this.networkInterfaceId = builder.networkInterfaceId; this.networkInterfacePermissionId = builder.networkInterfacePermissionId; this.permission = builder.permission; this.permissionState = builder.permissionState; this.serviceName = builder.serviceName; } public static Builder builder() { return new Builder(); } public static NetworkInterfacePermission create() { return builder().build(); } /** * @return accountId */ public Long getAccountId() { return this.accountId; } /** * @return networkInterfaceId */ public String getNetworkInterfaceId() { return this.networkInterfaceId; } /** * @return networkInterfacePermissionId */ public String getNetworkInterfacePermissionId() { return this.networkInterfacePermissionId; } /** * @return permission */ public String getPermission() { return this.permission; } /** * @return permissionState */ public String getPermissionState() { return this.permissionState; } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } public static final class Builder { private Long accountId; private String networkInterfaceId; private String networkInterfacePermissionId; private String permission; private String permissionState; private String serviceName; /** *

The ID of the Alibaba Cloud partner (a certified ISV) or individual user.

* * example: *

1234567890

*/ public Builder accountId(Long accountId) { this.accountId = accountId; return this; } /** *

The ID of ENI N.

* * example: *

eni-bp14v2sdd3v8htln****

*/ public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; return this; } /** *

The ID of the ENI permission.

* * example: *

eni-perm-bp1cs4lwn56lfb****

*/ public Builder networkInterfacePermissionId(String networkInterfacePermissionId) { this.networkInterfacePermissionId = networkInterfacePermissionId; return this; } /** *

The ENI permission.

* * example: *

InstanceAttach

*/ public Builder permission(String permission) { this.permission = permission; return this; } /** *

The status of the ENI permission. Valid values:

*
    *
  • Pending: The permission is being granted.
  • *
  • Granted: The permission is granted.
  • *
  • Revoking: The permission is being revoked.
  • *
  • Revoked: The permission is revoked.
  • *
* * example: *

Granted

*/ public Builder permissionState(String permissionState) { this.permissionState = permissionState; return this; } /** *

The name of the Alibaba Cloud service.

* * example: *

Elastic Compute Service

*/ public Builder serviceName(String serviceName) { this.serviceName = serviceName; return this; } public NetworkInterfacePermission build() { return new NetworkInterfacePermission(this); } } } /** * * {@link DescribeNetworkInterfacePermissionsResponseBody} extends {@link TeaModel} * *

DescribeNetworkInterfacePermissionsResponseBody

*/ public static class NetworkInterfacePermissions extends TeaModel { @com.aliyun.core.annotation.NameInMap("NetworkInterfacePermission") private java.util.List networkInterfacePermission; private NetworkInterfacePermissions(Builder builder) { this.networkInterfacePermission = builder.networkInterfacePermission; } public static Builder builder() { return new Builder(); } public static NetworkInterfacePermissions create() { return builder().build(); } /** * @return networkInterfacePermission */ public java.util.List getNetworkInterfacePermission() { return this.networkInterfacePermission; } public static final class Builder { private java.util.List networkInterfacePermission; /** * NetworkInterfacePermission. */ public Builder networkInterfacePermission(java.util.List networkInterfacePermission) { this.networkInterfacePermission = networkInterfacePermission; return this; } public NetworkInterfacePermissions build() { return new NetworkInterfacePermissions(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy