8 8 | public class EnableIpamPolicyRequest private constructor(builder: Builder) {
|
9 9 | /**
|
10 10 | * A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
11 11 | */
|
12 12 | public val dryRun: kotlin.Boolean? = builder.dryRun
|
13 13 | /**
|
14 14 | * The ID of the IPAM policy to enable.
|
15 15 | */
|
16 16 | public val ipamPolicyId: kotlin.String? = builder.ipamPolicyId
|
17 17 | /**
|
18 - | * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
|
19 - | *
|
20 18 | * A target can be an individual Amazon Web Services account or an entity within an Amazon Web Services Organization to which an IPAM policy can be applied.
|
19 + | *
|
20 + | * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
|
21 21 | */
|
22 22 | public val organizationTargetId: kotlin.String? = builder.organizationTargetId
|
23 23 |
|
24 24 | public companion object {
|
25 25 | public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ec2.model.EnableIpamPolicyRequest = Builder().apply(block).build()
|
26 26 | }
|
27 27 |
|
28 28 | override fun toString(): kotlin.String = buildString {
|
29 29 | append("EnableIpamPolicyRequest(")
|
30 30 | append("dryRun=$dryRun,")
|
31 31 | append("ipamPolicyId=$ipamPolicyId,")
|
32 32 | append("organizationTargetId=$organizationTargetId")
|
33 33 | append(")")
|
34 34 | }
|
35 35 |
|
36 36 | override fun hashCode(): kotlin.Int {
|
37 37 | var result = dryRun?.hashCode() ?: 0
|
38 38 | result = 31 * result + (this.ipamPolicyId?.hashCode() ?: 0)
|
39 39 | result = 31 * result + (this.organizationTargetId?.hashCode() ?: 0)
|
40 40 | return result
|
41 41 | }
|
42 42 |
|
43 43 | override fun equals(other: kotlin.Any?): kotlin.Boolean {
|
44 44 | if (this === other) return true
|
45 45 | if (other == null || this::class != other::class) return false
|
46 46 |
|
47 47 | other as EnableIpamPolicyRequest
|
48 48 |
|
49 49 | if (dryRun != other.dryRun) return false
|
50 50 | if (ipamPolicyId != other.ipamPolicyId) return false
|
51 51 | if (organizationTargetId != other.organizationTargetId) return false
|
52 52 |
|
53 53 | return true
|
54 54 | }
|
55 55 |
|
56 56 | public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ec2.model.EnableIpamPolicyRequest = Builder(this).apply(block).build()
|
57 57 |
|
58 58 | @SdkDsl
|
59 59 | public class Builder {
|
60 60 | /**
|
61 61 | * A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
62 62 | */
|
63 63 | public var dryRun: kotlin.Boolean? = null
|
64 64 | /**
|
65 65 | * The ID of the IPAM policy to enable.
|
66 66 | */
|
67 67 | public var ipamPolicyId: kotlin.String? = null
|
68 68 | /**
|
69 - | * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
|
70 - | *
|
71 69 | * A target can be an individual Amazon Web Services account or an entity within an Amazon Web Services Organization to which an IPAM policy can be applied.
|
70 + | *
|
71 + | * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
|
72 72 | */
|
73 73 | public var organizationTargetId: kotlin.String? = null
|
74 74 |
|
75 75 | @PublishedApi
|
76 76 | internal constructor()
|
77 77 | @PublishedApi
|
78 78 | internal constructor(x: aws.sdk.kotlin.services.ec2.model.EnableIpamPolicyRequest) : this() {
|
79 79 | this.dryRun = x.dryRun
|
80 80 | this.ipamPolicyId = x.ipamPolicyId
|
81 81 | this.organizationTargetId = x.organizationTargetId
|