@Override public String toString() { return ToString.builder("DescribeRuleResponse").add("Name", name()).add("Arn", arn()).add("EventPattern", eventPattern()) .add("ScheduleExpression", scheduleExpression()).add("State", stateAsString()).add("Description", description()) .add("RoleArn", roleArn()).build(); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("DescribeRuleResponse").add("Name", name()).add("Arn", arn()).add("EventPattern", eventPattern()) .add("ScheduleExpression", scheduleExpression()).add("State", stateAsString()).add("Description", description()) .add("RoleArn", roleArn()).add("ManagedBy", managedBy()).build(); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("DescribeRuleResponse").add("Name", name()).add("Arn", arn()).add("EventPattern", eventPattern()) .add("ScheduleExpression", scheduleExpression()).add("State", stateAsString()).add("Description", description()) .add("RoleArn", roleArn()).add("ManagedBy", managedBy()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(arn()); hashCode = 31 * hashCode + Objects.hashCode(eventPattern()); hashCode = 31 * hashCode + Objects.hashCode(scheduleExpression()); hashCode = 31 * hashCode + Objects.hashCode(stateAsString()); hashCode = 31 * hashCode + Objects.hashCode(description()); hashCode = 31 * hashCode + Objects.hashCode(roleArn()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(arn()); hashCode = 31 * hashCode + Objects.hashCode(eventPattern()); hashCode = 31 * hashCode + Objects.hashCode(scheduleExpression()); hashCode = 31 * hashCode + Objects.hashCode(stateAsString()); hashCode = 31 * hashCode + Objects.hashCode(description()); hashCode = 31 * hashCode + Objects.hashCode(roleArn()); hashCode = 31 * hashCode + Objects.hashCode(managedBy()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Name": return Optional.ofNullable(clazz.cast(name())); case "Arn": return Optional.ofNullable(clazz.cast(arn())); case "EventPattern": return Optional.ofNullable(clazz.cast(eventPattern())); case "ScheduleExpression": return Optional.ofNullable(clazz.cast(scheduleExpression())); case "State": return Optional.ofNullable(clazz.cast(stateAsString())); case "Description": return Optional.ofNullable(clazz.cast(description())); case "RoleArn": return Optional.ofNullable(clazz.cast(roleArn())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Name": return Optional.ofNullable(clazz.cast(name())); case "Arn": return Optional.ofNullable(clazz.cast(arn())); case "EventPattern": return Optional.ofNullable(clazz.cast(eventPattern())); case "ScheduleExpression": return Optional.ofNullable(clazz.cast(scheduleExpression())); case "State": return Optional.ofNullable(clazz.cast(stateAsString())); case "Description": return Optional.ofNullable(clazz.cast(description())); case "RoleArn": return Optional.ofNullable(clazz.cast(roleArn())); case "ManagedBy": return Optional.ofNullable(clazz.cast(managedBy())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Name": return Optional.ofNullable(clazz.cast(name())); case "Arn": return Optional.ofNullable(clazz.cast(arn())); case "EventPattern": return Optional.ofNullable(clazz.cast(eventPattern())); case "ScheduleExpression": return Optional.ofNullable(clazz.cast(scheduleExpression())); case "State": return Optional.ofNullable(clazz.cast(stateAsString())); case "Description": return Optional.ofNullable(clazz.cast(description())); case "RoleArn": return Optional.ofNullable(clazz.cast(roleArn())); case "ManagedBy": return Optional.ofNullable(clazz.cast(managedBy())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(arn()); hashCode = 31 * hashCode + Objects.hashCode(eventPattern()); hashCode = 31 * hashCode + Objects.hashCode(scheduleExpression()); hashCode = 31 * hashCode + Objects.hashCode(stateAsString()); hashCode = 31 * hashCode + Objects.hashCode(description()); hashCode = 31 * hashCode + Objects.hashCode(roleArn()); hashCode = 31 * hashCode + Objects.hashCode(managedBy()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeRuleResponse)) { return false; } DescribeRuleResponse other = (DescribeRuleResponse) obj; return Objects.equals(name(), other.name()) && Objects.equals(arn(), other.arn()) && Objects.equals(eventPattern(), other.eventPattern()) && Objects.equals(scheduleExpression(), other.scheduleExpression()) && Objects.equals(stateAsString(), other.stateAsString()) && Objects.equals(description(), other.description()) && Objects.equals(roleArn(), other.roleArn()) && Objects.equals(managedBy(), other.managedBy()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeRuleResponse)) { return false; } DescribeRuleResponse other = (DescribeRuleResponse) obj; return Objects.equals(name(), other.name()) && Objects.equals(arn(), other.arn()) && Objects.equals(eventPattern(), other.eventPattern()) && Objects.equals(scheduleExpression(), other.scheduleExpression()) && Objects.equals(stateAsString(), other.stateAsString()) && Objects.equals(description(), other.description()) && Objects.equals(roleArn(), other.roleArn()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeRuleResponse)) { return false; } DescribeRuleResponse other = (DescribeRuleResponse) obj; return Objects.equals(name(), other.name()) && Objects.equals(arn(), other.arn()) && Objects.equals(eventPattern(), other.eventPattern()) && Objects.equals(scheduleExpression(), other.scheduleExpression()) && Objects.equals(stateAsString(), other.stateAsString()) && Objects.equals(description(), other.description()) && Objects.equals(roleArn(), other.roleArn()) && Objects.equals(managedBy(), other.managedBy()); }