public boolean equals(Object o) {if (this == o) {return true;}if (o == null || getClass() != o.getClass()) {return false;}Arn arn = (Arn) o;if (!partition.equals(arn.partition)) {return false;}if (!service.equals(arn.service)) {return false;}if (region != null ? !region.equals(arn.region) : arn.region != null) {return false;}if (accountId != null ? !accountId.equals(arn.accountId) : arn.accountId != null) {return false;}return resource.equals(arn.resource);}
public override bool Equals(object o){if (this == o){return true;}var arn = o as Arn;if(arn == null){return false;}if (!Partition.Equals(arn.Partition)){return false;}if (!Service.Equals(arn.Service)){return false;}if (Region != arn.Region){return false;}if (AccountId != arn.AccountId){return false;}return Resource.Equals(arn.Resource);}