示例#1
0
        public static bool Equals(JobFlow obj1, JobFlow obj2)
        {
            if (object.ReferenceEquals(obj1, null) && object.ReferenceEquals(obj2, null))
            {
                return(true);
            }

            if (object.ReferenceEquals(obj1, null) || object.ReferenceEquals(obj2, null))
            {
                return(false);
            }

            return(obj1.Name == obj2.Name &&
                   obj1.LogUri == obj2.LogUri &&
                   obj1.Ec2KeyName == obj2.Ec2KeyName &&
                   obj1.JobFlowRole == obj2.JobFlowRole &&
                   obj1.AmiVersion == obj2.AmiVersion &&
                   obj1.HadoopVersion == obj2.HadoopVersion &&
                   obj1.MasterInstanceType == obj2.MasterInstanceType &&
                   obj1.SlaveInstanceType == obj2.SlaveInstanceType &&
                   obj1.InstanceCount == obj2.InstanceCount &&
                   obj1.KeepJobFlowAliveWhenNoSteps == obj2.KeepJobFlowAliveWhenNoSteps &&
                   obj1.TerminationProtected == obj2.TerminationProtected &&
                   obj1.AdditionalInfo == obj2.AdditionalInfo &&
                   EmrWorkflowItemBase.ListsAreEqual(obj1.Tags, obj2.Tags) &&
                   EmrWorkflowItemBase.ListsAreEqual(obj1.Configs, obj2.Configs) &&
                   EmrWorkflowItemBase.ListsAreEqual(obj1.BootstrapActions, obj2.BootstrapActions) &&
                   EmrWorkflowItemBase.ListsAreEqual(obj1.Steps, obj2.Steps));
        }
示例#2
0
 public bool Equals(JobFlow obj)
 {
     if (object.ReferenceEquals(obj, null))
     {
         return(false);
     }
     return(JobFlow.Equals(this, obj));
 }
示例#3
0
 public static bool operator !=(JobFlow obj1, JobFlow obj2)
 {
     return(!JobFlow.Equals(obj1, obj2));
 }