7 7 | private val awsSdkKotlinServicesEc2ModelAssociationStatusDslBuilderRef = aws.sdk.kotlin.services.ec2.model.AssociationStatus
|
8 8 |
|
9 9 | /**
|
10 10 | * Describes a target network associated with a Client VPN endpoint.
|
11 11 | */
|
12 12 | public class TargetNetwork private constructor(builder: Builder) {
|
13 13 | /**
|
14 14 | * The ID of the association.
|
15 15 | */
|
16 16 | public val associationId: kotlin.String? = builder.associationId
|
17 + | /**
|
18 + | * The Availability Zone IDs for the target network association, if the Client VPN endpoint uses a Transit Gateway.
|
19 + | */
|
20 + | public val availabilityZoneIds: List<String>? = builder.availabilityZoneIds
|
21 + | /**
|
22 + | * The Availability Zone names for the target network association, if the Client VPN endpoint uses a Transit Gateway.
|
23 + | */
|
24 + | public val availabilityZones: List<String>? = builder.availabilityZones
|
17 25 | /**
|
18 26 | * The ID of the Client VPN endpoint with which the target network is associated.
|
19 27 | */
|
20 28 | public val clientVpnEndpointId: kotlin.String? = builder.clientVpnEndpointId
|
21 29 | /**
|
22 30 | * The IDs of the security groups applied to the target network association.
|
23 31 | */
|
24 32 | public val securityGroups: List<String>? = builder.securityGroups
|
25 33 | /**
|
26 34 | * The current state of the target network association.
|
27 35 | */
|
28 36 | public val status: aws.sdk.kotlin.services.ec2.model.AssociationStatus? = builder.status
|
29 37 | /**
|
30 38 | * The ID of the subnet specified as the target network.
|
31 39 | */
|
32 40 | public val targetNetworkId: kotlin.String? = builder.targetNetworkId
|
33 41 | /**
|
34 42 | * The ID of the VPC in which the target network (subnet) is located.
|
35 43 | */
|
36 44 | public val vpcId: kotlin.String? = builder.vpcId
|
37 45 |
|
38 46 | public companion object {
|
39 47 | public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ec2.model.TargetNetwork = Builder().apply(block).build()
|
40 48 | }
|
41 49 |
|
42 50 | override fun toString(): kotlin.String = buildString {
|
43 51 | append("TargetNetwork(")
|
44 52 | append("associationId=$associationId,")
|
53 + | append("availabilityZoneIds=$availabilityZoneIds,")
|
54 + | append("availabilityZones=$availabilityZones,")
|
45 55 | append("clientVpnEndpointId=$clientVpnEndpointId,")
|
46 56 | append("securityGroups=$securityGroups,")
|
47 57 | append("status=$status,")
|
48 58 | append("targetNetworkId=$targetNetworkId,")
|
49 59 | append("vpcId=$vpcId")
|
50 60 | append(")")
|
51 61 | }
|
52 62 |
|
53 63 | override fun hashCode(): kotlin.Int {
|
54 64 | var result = associationId?.hashCode() ?: 0
|
65 + | result = 31 * result + (this.availabilityZoneIds?.hashCode() ?: 0)
|
66 + | result = 31 * result + (this.availabilityZones?.hashCode() ?: 0)
|
55 67 | result = 31 * result + (this.clientVpnEndpointId?.hashCode() ?: 0)
|
56 68 | result = 31 * result + (this.securityGroups?.hashCode() ?: 0)
|
57 69 | result = 31 * result + (this.status?.hashCode() ?: 0)
|
58 70 | result = 31 * result + (this.targetNetworkId?.hashCode() ?: 0)
|
59 71 | result = 31 * result + (this.vpcId?.hashCode() ?: 0)
|
60 72 | return result
|
61 73 | }
|
62 74 |
|
63 75 | override fun equals(other: kotlin.Any?): kotlin.Boolean {
|
64 76 | if (this === other) return true
|
65 77 | if (other == null || this::class != other::class) return false
|
66 78 |
|
67 79 | other as TargetNetwork
|
68 80 |
|
69 81 | if (associationId != other.associationId) return false
|
82 + | if (availabilityZoneIds != other.availabilityZoneIds) return false
|
83 + | if (availabilityZones != other.availabilityZones) return false
|
70 84 | if (clientVpnEndpointId != other.clientVpnEndpointId) return false
|
71 85 | if (securityGroups != other.securityGroups) return false
|
72 86 | if (status != other.status) return false
|
73 87 | if (targetNetworkId != other.targetNetworkId) return false
|
74 88 | if (vpcId != other.vpcId) return false
|
75 89 |
|
76 90 | return true
|
77 91 | }
|
78 92 |
|
79 93 | public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ec2.model.TargetNetwork = Builder(this).apply(block).build()
|
80 94 |
|
81 95 | @SdkDsl
|
82 96 | public class Builder {
|
83 97 | /**
|
84 98 | * The ID of the association.
|
85 99 | */
|
86 100 | public var associationId: kotlin.String? = null
|
101 + | /**
|
102 + | * The Availability Zone IDs for the target network association, if the Client VPN endpoint uses a Transit Gateway.
|
103 + | */
|
104 + | public var availabilityZoneIds: List<String>? = null
|
105 + | /**
|
106 + | * The Availability Zone names for the target network association, if the Client VPN endpoint uses a Transit Gateway.
|
107 + | */
|
108 + | public var availabilityZones: List<String>? = null
|
87 109 | /**
|
88 110 | * The ID of the Client VPN endpoint with which the target network is associated.
|
89 111 | */
|
90 112 | public var clientVpnEndpointId: kotlin.String? = null
|
91 113 | /**
|
92 114 | * The IDs of the security groups applied to the target network association.
|
93 115 | */
|
94 116 | public var securityGroups: List<String>? = null
|
95 117 | /**
|
96 118 | * The current state of the target network association.
|
97 119 | */
|
98 120 | public var status: aws.sdk.kotlin.services.ec2.model.AssociationStatus? = null
|
99 121 | /**
|
100 122 | * The ID of the subnet specified as the target network.
|
101 123 | */
|
102 124 | public var targetNetworkId: kotlin.String? = null
|
103 125 | /**
|
104 126 | * The ID of the VPC in which the target network (subnet) is located.
|
105 127 | */
|
106 128 | public var vpcId: kotlin.String? = null
|
107 129 |
|
108 130 | @PublishedApi
|
109 131 | internal constructor()
|
110 132 | @PublishedApi
|
111 133 | internal constructor(x: aws.sdk.kotlin.services.ec2.model.TargetNetwork) : this() {
|
112 134 | this.associationId = x.associationId
|
135 + | this.availabilityZoneIds = x.availabilityZoneIds
|
136 + | this.availabilityZones = x.availabilityZones
|
113 137 | this.clientVpnEndpointId = x.clientVpnEndpointId
|
114 138 | this.securityGroups = x.securityGroups
|
115 139 | this.status = x.status
|
116 140 | this.targetNetworkId = x.targetNetworkId
|
117 141 | this.vpcId = x.vpcId
|
118 142 | }
|
119 143 |
|
120 144 | @PublishedApi
|
121 145 | internal fun build(): aws.sdk.kotlin.services.ec2.model.TargetNetwork = TargetNetwork(this)
|
122 146 |
|