|
| 1 | +// Copyright 2020 StrongDM Inc |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | +// |
| 15 | + |
| 16 | +// Code generated by protogen. DO NOT EDIT. |
| 17 | + |
| 18 | +package com.strongdm.api; |
| 19 | + |
| 20 | +/** |
| 21 | + * AuroraMysqlIAM is currently unstable, and its API may change, or it may be removed, without a |
| 22 | + * major version bump. |
| 23 | + */ |
| 24 | +public class AuroraMysqlIAM implements Resource { |
| 25 | + private String bindInterface; |
| 26 | + /** |
| 27 | + * The bind interface is the IP address to which the port override of a resource is bound (for |
| 28 | + * example, 127.0.0.1). It is automatically generated if not provided. |
| 29 | + */ |
| 30 | + public String getBindInterface() { |
| 31 | + return this.bindInterface; |
| 32 | + } |
| 33 | + /** |
| 34 | + * The bind interface is the IP address to which the port override of a resource is bound (for |
| 35 | + * example, 127.0.0.1). It is automatically generated if not provided. |
| 36 | + */ |
| 37 | + public void setBindInterface(String in) { |
| 38 | + this.bindInterface = in; |
| 39 | + } |
| 40 | + |
| 41 | + private String database; |
| 42 | + /** The database for healthchecks. Does not affect client requests */ |
| 43 | + public String getDatabase() { |
| 44 | + return this.database; |
| 45 | + } |
| 46 | + /** The database for healthchecks. Does not affect client requests */ |
| 47 | + public void setDatabase(String in) { |
| 48 | + this.database = in; |
| 49 | + } |
| 50 | + |
| 51 | + private String egressFilter; |
| 52 | + /** A filter applied to the routing logic to pin datasource to nodes. */ |
| 53 | + public String getEgressFilter() { |
| 54 | + return this.egressFilter; |
| 55 | + } |
| 56 | + /** A filter applied to the routing logic to pin datasource to nodes. */ |
| 57 | + public void setEgressFilter(String in) { |
| 58 | + this.egressFilter = in; |
| 59 | + } |
| 60 | + |
| 61 | + private boolean healthy; |
| 62 | + /** True if the datasource is reachable and the credentials are valid. */ |
| 63 | + public boolean getHealthy() { |
| 64 | + return this.healthy; |
| 65 | + } |
| 66 | + /** True if the datasource is reachable and the credentials are valid. */ |
| 67 | + public void setHealthy(boolean in) { |
| 68 | + this.healthy = in; |
| 69 | + } |
| 70 | + |
| 71 | + private String hostname; |
| 72 | + /** The host to dial to initiate a connection from the egress node to this resource. */ |
| 73 | + public String getHostname() { |
| 74 | + return this.hostname; |
| 75 | + } |
| 76 | + /** The host to dial to initiate a connection from the egress node to this resource. */ |
| 77 | + public void setHostname(String in) { |
| 78 | + this.hostname = in; |
| 79 | + } |
| 80 | + |
| 81 | + private String id; |
| 82 | + /** Unique identifier of the Resource. */ |
| 83 | + public String getId() { |
| 84 | + return this.id; |
| 85 | + } |
| 86 | + /** Unique identifier of the Resource. */ |
| 87 | + public void setId(String in) { |
| 88 | + this.id = in; |
| 89 | + } |
| 90 | + |
| 91 | + private String name; |
| 92 | + /** Unique human-readable name of the Resource. */ |
| 93 | + public String getName() { |
| 94 | + return this.name; |
| 95 | + } |
| 96 | + /** Unique human-readable name of the Resource. */ |
| 97 | + public void setName(String in) { |
| 98 | + this.name = in; |
| 99 | + } |
| 100 | + |
| 101 | + private int port; |
| 102 | + /** The port to dial to initiate a connection from the egress node to this resource. */ |
| 103 | + public int getPort() { |
| 104 | + return this.port; |
| 105 | + } |
| 106 | + /** The port to dial to initiate a connection from the egress node to this resource. */ |
| 107 | + public void setPort(int in) { |
| 108 | + this.port = in; |
| 109 | + } |
| 110 | + |
| 111 | + private int portOverride; |
| 112 | + /** The local port used by clients to connect to this resource. */ |
| 113 | + public int getPortOverride() { |
| 114 | + return this.portOverride; |
| 115 | + } |
| 116 | + /** The local port used by clients to connect to this resource. */ |
| 117 | + public void setPortOverride(int in) { |
| 118 | + this.portOverride = in; |
| 119 | + } |
| 120 | + |
| 121 | + private String proxyClusterId; |
| 122 | + /** ID of the proxy cluster for this resource, if any. */ |
| 123 | + public String getProxyClusterId() { |
| 124 | + return this.proxyClusterId; |
| 125 | + } |
| 126 | + /** ID of the proxy cluster for this resource, if any. */ |
| 127 | + public void setProxyClusterId(String in) { |
| 128 | + this.proxyClusterId = in; |
| 129 | + } |
| 130 | + |
| 131 | + private String region; |
| 132 | + /** The AWS region to connect to. */ |
| 133 | + public String getRegion() { |
| 134 | + return this.region; |
| 135 | + } |
| 136 | + /** The AWS region to connect to. */ |
| 137 | + public void setRegion(String in) { |
| 138 | + this.region = in; |
| 139 | + } |
| 140 | + |
| 141 | + private String roleAssumptionArn; |
| 142 | + /** |
| 143 | + * If provided, the gateway/relay will try to assume this role instead of the underlying compute's |
| 144 | + * role. |
| 145 | + */ |
| 146 | + public String getRoleAssumptionArn() { |
| 147 | + return this.roleAssumptionArn; |
| 148 | + } |
| 149 | + /** |
| 150 | + * If provided, the gateway/relay will try to assume this role instead of the underlying compute's |
| 151 | + * role. |
| 152 | + */ |
| 153 | + public void setRoleAssumptionArn(String in) { |
| 154 | + this.roleAssumptionArn = in; |
| 155 | + } |
| 156 | + |
| 157 | + private String secretStoreId; |
| 158 | + /** ID of the secret store containing credentials for this resource, if any. */ |
| 159 | + public String getSecretStoreId() { |
| 160 | + return this.secretStoreId; |
| 161 | + } |
| 162 | + /** ID of the secret store containing credentials for this resource, if any. */ |
| 163 | + public void setSecretStoreId(String in) { |
| 164 | + this.secretStoreId = in; |
| 165 | + } |
| 166 | + |
| 167 | + private String subdomain; |
| 168 | + /** |
| 169 | + * Subdomain is the local DNS address. (e.g. app-prod1 turns into |
| 170 | + * app-prod1.your-org-name.sdm.network) |
| 171 | + */ |
| 172 | + public String getSubdomain() { |
| 173 | + return this.subdomain; |
| 174 | + } |
| 175 | + /** |
| 176 | + * Subdomain is the local DNS address. (e.g. app-prod1 turns into |
| 177 | + * app-prod1.your-org-name.sdm.network) |
| 178 | + */ |
| 179 | + public void setSubdomain(String in) { |
| 180 | + this.subdomain = in; |
| 181 | + } |
| 182 | + |
| 183 | + private java.util.Map<String, String> tags; |
| 184 | + /** Tags is a map of key, value pairs. */ |
| 185 | + public java.util.Map<String, String> getTags() { |
| 186 | + java.util.Map<String, String> m = new java.util.HashMap<String, String>(); |
| 187 | + if (this.tags != null) { |
| 188 | + m.putAll(this.tags); |
| 189 | + } |
| 190 | + return m; |
| 191 | + } |
| 192 | + /** Tags is a map of key, value pairs. */ |
| 193 | + public void setTags(java.util.Map<String, String> in) { |
| 194 | + if (in == null) { |
| 195 | + this.tags = null; |
| 196 | + return; |
| 197 | + } |
| 198 | + this.tags = new java.util.HashMap<String, String>(); |
| 199 | + this.tags.putAll(in); |
| 200 | + } |
| 201 | + |
| 202 | + private String username; |
| 203 | + /** The username to authenticate with. */ |
| 204 | + public String getUsername() { |
| 205 | + return this.username; |
| 206 | + } |
| 207 | + /** The username to authenticate with. */ |
| 208 | + public void setUsername(String in) { |
| 209 | + this.username = in; |
| 210 | + } |
| 211 | +} |
0 commit comments