All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codeguruprofiler.model.Match Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CodeGuru Profiler module holds the client classes that are used for communicating with Amazon CodeGuru Profiler Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.codeguruprofiler.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The part of a profile that contains a recommendation found during analysis. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Match implements Serializable, Cloneable, StructuredPojo { /** *

* The location in the profiling graph that contains a recommendation found during analysis. *

*/ private String frameAddress; /** *

* The target frame that triggered a match. *

*/ private Integer targetFramesIndex; /** *

* The value in the profile data that exceeded the recommendation threshold. *

*/ private Double thresholdBreachValue; /** *

* The location in the profiling graph that contains a recommendation found during analysis. *

* * @param frameAddress * The location in the profiling graph that contains a recommendation found during analysis. */ public void setFrameAddress(String frameAddress) { this.frameAddress = frameAddress; } /** *

* The location in the profiling graph that contains a recommendation found during analysis. *

* * @return The location in the profiling graph that contains a recommendation found during analysis. */ public String getFrameAddress() { return this.frameAddress; } /** *

* The location in the profiling graph that contains a recommendation found during analysis. *

* * @param frameAddress * The location in the profiling graph that contains a recommendation found during analysis. * @return Returns a reference to this object so that method calls can be chained together. */ public Match withFrameAddress(String frameAddress) { setFrameAddress(frameAddress); return this; } /** *

* The target frame that triggered a match. *

* * @param targetFramesIndex * The target frame that triggered a match. */ public void setTargetFramesIndex(Integer targetFramesIndex) { this.targetFramesIndex = targetFramesIndex; } /** *

* The target frame that triggered a match. *

* * @return The target frame that triggered a match. */ public Integer getTargetFramesIndex() { return this.targetFramesIndex; } /** *

* The target frame that triggered a match. *

* * @param targetFramesIndex * The target frame that triggered a match. * @return Returns a reference to this object so that method calls can be chained together. */ public Match withTargetFramesIndex(Integer targetFramesIndex) { setTargetFramesIndex(targetFramesIndex); return this; } /** *

* The value in the profile data that exceeded the recommendation threshold. *

* * @param thresholdBreachValue * The value in the profile data that exceeded the recommendation threshold. */ public void setThresholdBreachValue(Double thresholdBreachValue) { this.thresholdBreachValue = thresholdBreachValue; } /** *

* The value in the profile data that exceeded the recommendation threshold. *

* * @return The value in the profile data that exceeded the recommendation threshold. */ public Double getThresholdBreachValue() { return this.thresholdBreachValue; } /** *

* The value in the profile data that exceeded the recommendation threshold. *

* * @param thresholdBreachValue * The value in the profile data that exceeded the recommendation threshold. * @return Returns a reference to this object so that method calls can be chained together. */ public Match withThresholdBreachValue(Double thresholdBreachValue) { setThresholdBreachValue(thresholdBreachValue); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getFrameAddress() != null) sb.append("FrameAddress: ").append(getFrameAddress()).append(","); if (getTargetFramesIndex() != null) sb.append("TargetFramesIndex: ").append(getTargetFramesIndex()).append(","); if (getThresholdBreachValue() != null) sb.append("ThresholdBreachValue: ").append(getThresholdBreachValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Match == false) return false; Match other = (Match) obj; if (other.getFrameAddress() == null ^ this.getFrameAddress() == null) return false; if (other.getFrameAddress() != null && other.getFrameAddress().equals(this.getFrameAddress()) == false) return false; if (other.getTargetFramesIndex() == null ^ this.getTargetFramesIndex() == null) return false; if (other.getTargetFramesIndex() != null && other.getTargetFramesIndex().equals(this.getTargetFramesIndex()) == false) return false; if (other.getThresholdBreachValue() == null ^ this.getThresholdBreachValue() == null) return false; if (other.getThresholdBreachValue() != null && other.getThresholdBreachValue().equals(this.getThresholdBreachValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFrameAddress() == null) ? 0 : getFrameAddress().hashCode()); hashCode = prime * hashCode + ((getTargetFramesIndex() == null) ? 0 : getTargetFramesIndex().hashCode()); hashCode = prime * hashCode + ((getThresholdBreachValue() == null) ? 0 : getThresholdBreachValue().hashCode()); return hashCode; } @Override public Match clone() { try { return (Match) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codeguruprofiler.model.transform.MatchMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy