public bool Equals(AutoScalingLifecycleEvent other) { if (ReferenceEquals(this, other)) { return(true); } else { return(this.AutoScalingGroupName == other.AutoScalingGroupName && this.EC2InstanceId == other.EC2InstanceId && this.LifecycleActionToken == other.LifecycleActionToken && this.LifecycleHookName == other.LifecycleHookName && this.LifecycleTransition == other.LifecycleTransition && this.NotificationMetadata == other.NotificationMetadata); } }
public override bool Equals(object obj) { if (ReferenceEquals(this, obj)) { return(true); } if (obj == null || this.GetType() != obj.GetType()) { return(false); } AutoScalingLifecycleEvent other = (AutoScalingLifecycleEvent)obj; return(this.Equals(other)); }