@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new ElasticsearchDomain( "arn", "domain", "vpc", "point", 1, ImmutableList.of(), ImmutableList.of(), true), new ElasticsearchDomain( "arn", "domain", "vpc", "point", 1, ImmutableList.of(), ImmutableList.of(), true)) .addEqualityGroup( new ElasticsearchDomain( "other", "domain", "vpc", "point", 1, ImmutableList.of(), ImmutableList.of(), true)) .addEqualityGroup( new ElasticsearchDomain( "arn", "other", "vpc", "point", 1, ImmutableList.of(), ImmutableList.of(), true)) .addEqualityGroup( new ElasticsearchDomain( "arn", "domain", "other", "point", 1, ImmutableList.of(), ImmutableList.of(), true)) .addEqualityGroup( new ElasticsearchDomain( "arn", "domain", "vpc", "other", 1, ImmutableList.of(), ImmutableList.of(), true)) .addEqualityGroup( new ElasticsearchDomain( "arn", "domain", "vpc", "point", 0, ImmutableList.of(), ImmutableList.of(), true)) .addEqualityGroup( new ElasticsearchDomain( "arn", "domain", "vpc", "point", 1, ImmutableList.of("other"), ImmutableList.of(), true)) .addEqualityGroup( new ElasticsearchDomain( "arn", "domain", "vpc", "point", 1, ImmutableList.of(), ImmutableList.of("other"), true)) .addEqualityGroup( new ElasticsearchDomain( "arn", "domain", "vpc", "point", 1, ImmutableList.of(), ImmutableList.of(), false)) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ElasticsearchDomain)) { return false; } ElasticsearchDomain that = (ElasticsearchDomain) o; return _arn.equals(that._arn) && _available == that._available && _instanceCount == that._instanceCount && Objects.equals(_securityGroups, that._securityGroups) && Objects.equals(_domainName, that._domainName) && Objects.equals(_vpcId, that._vpcId) && Objects.equals(_vpcEndpoint, that._vpcEndpoint) && Objects.equals(_subnets, that._subnets); }
ElasticsearchDomain implements AwsVpcEntity, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ElasticsearchDomain)) { return false; } ElasticsearchDomain that = (ElasticsearchDomain) o; return _arn.equals(that._arn) && _available == that._available && _instanceCount == that._instanceCount && Objects.equals(_securityGroups, that._securityGroups) && Objects.equals(_domainName, that._domainName) && Objects.equals(_vpcId, that._vpcId) && Objects.equals(_vpcEndpoint, that._vpcEndpoint) && Objects.equals(_subnets, that._subnets); } }
ElasticsearchDomain implements AwsVpcEntity, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ElasticsearchDomain)) { return false; } ElasticsearchDomain that = (ElasticsearchDomain) o; return _arn.equals(that._arn) && _available == that._available && _instanceCount == that._instanceCount && Objects.equals(_securityGroups, that._securityGroups) && Objects.equals(_domainName, that._domainName) && Objects.equals(_vpcId, that._vpcId) && Objects.equals(_vpcEndpoint, that._vpcEndpoint) && Objects.equals(_subnets, that._subnets); } ElasticsearchDomain(
      String arn,
      String domainName,
      @Nullable String vpcId,
      @Nullable String vpcEndpoint,
      int instanceCount,
      List<String> securityGroups,
      List<String> subnets,
      boolean available); }
ElasticsearchDomain implements AwsVpcEntity, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ElasticsearchDomain)) { return false; } ElasticsearchDomain that = (ElasticsearchDomain) o; return _arn.equals(that._arn) && _available == that._available && _instanceCount == that._instanceCount && Objects.equals(_securityGroups, that._securityGroups) && Objects.equals(_domainName, that._domainName) && Objects.equals(_vpcId, that._vpcId) && Objects.equals(_vpcEndpoint, that._vpcEndpoint) && Objects.equals(_subnets, that._subnets); } ElasticsearchDomain(
      String arn,
      String domainName,
      @Nullable String vpcId,
      @Nullable String vpcEndpoint,
      int instanceCount,
      List<String> securityGroups,
      List<String> subnets,
      boolean available); boolean getAvailable(); @Nonnull String getDomainName(); @Override String getId(); int getInstanceCount(); @Nonnull List<String> getSecurityGroups(); @Nonnull List<String> getSubnets(); @Nullable String getVpcEndpoint(); @Nullable String getVpcId(); List<Configuration> toConfigurationNodes(
      ConvertedConfiguration awsConfiguration, Region region, Warnings warnings); @Override boolean equals(Object o); @Override int hashCode(); }
ElasticsearchDomain implements AwsVpcEntity, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ElasticsearchDomain)) { return false; } ElasticsearchDomain that = (ElasticsearchDomain) o; return _arn.equals(that._arn) && _available == that._available && _instanceCount == that._instanceCount && Objects.equals(_securityGroups, that._securityGroups) && Objects.equals(_domainName, that._domainName) && Objects.equals(_vpcId, that._vpcId) && Objects.equals(_vpcEndpoint, that._vpcEndpoint) && Objects.equals(_subnets, that._subnets); } ElasticsearchDomain(
      String arn,
      String domainName,
      @Nullable String vpcId,
      @Nullable String vpcEndpoint,
      int instanceCount,
      List<String> securityGroups,
      List<String> subnets,
      boolean available); boolean getAvailable(); @Nonnull String getDomainName(); @Override String getId(); int getInstanceCount(); @Nonnull List<String> getSecurityGroups(); @Nonnull List<String> getSubnets(); @Nullable String getVpcEndpoint(); @Nullable String getVpcId(); List<Configuration> toConfigurationNodes(
      ConvertedConfiguration awsConfiguration, Region region, Warnings warnings); @Override boolean equals(Object o); @Override int hashCode();  }