Tabnine Logo
AgentInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
AgentInfo
in
software.amazon.awssdk.services.applicationdiscovery.model

Best Java code snippets using software.amazon.awssdk.services.applicationdiscovery.model.AgentInfo (Showing top 20 results out of 315)

origin: aws/aws-sdk-java-v2

@Override
public AgentInfo build() {
  return new AgentInfo(this);
}
origin: aws/aws-sdk-java-v2

/**
 * 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("AgentInfo").add("AgentId", agentId()).add("HostName", hostName())
      .add("AgentNetworkInfoList", agentNetworkInfoList()).add("ConnectorId", connectorId()).add("Version", version())
      .add("Health", healthAsString()).add("LastHealthPingTime", lastHealthPingTime())
      .add("CollectionStatus", collectionStatus()).add("AgentType", agentType())
      .add("RegisteredTime", registeredTime()).build();
}
origin: aws/aws-sdk-java-v2

@Override
@SafeVarargs
public final Builder agentsInfo(Consumer<AgentInfo.Builder>... agentsInfo) {
  agentsInfo(Stream.of(agentsInfo).map(c -> AgentInfo.builder().applyMutation(c).build()).collect(Collectors.toList()));
  return this;
}
origin: software.amazon.awssdk/discovery

@Override
@SafeVarargs
public final Builder agentsInfo(Consumer<AgentInfo.Builder>... agentsInfo) {
  agentsInfo(Stream.of(agentsInfo).map(c -> AgentInfo.builder().applyMutation(c).build()).collect(Collectors.toList()));
  return this;
}
origin: software.amazon.awssdk/applicationdiscovery

/**
 * 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("AgentInfo").add("AgentId", agentId()).add("HostName", hostName())
      .add("AgentNetworkInfoList", agentNetworkInfoList()).add("ConnectorId", connectorId()).add("Version", version())
      .add("Health", healthAsString()).add("LastHealthPingTime", lastHealthPingTime())
      .add("CollectionStatus", collectionStatus()).add("AgentType", agentType())
      .add("RegisteredTime", registeredTime()).build();
}
origin: software.amazon.awssdk/applicationdiscovery

@Override
@SafeVarargs
public final Builder agentsInfo(Consumer<AgentInfo.Builder>... agentsInfo) {
  agentsInfo(Stream.of(agentsInfo).map(c -> AgentInfo.builder().applyMutation(c).build()).collect(Collectors.toList()));
  return this;
}
origin: software.amazon.awssdk/discovery

  @Override
  public AgentInfo build() {
    return new AgentInfo(this);
  }
}
origin: software.amazon.awssdk/discovery

@Override
public String toString() {
  return ToString.builder("AgentInfo").add("AgentId", agentId()).add("HostName", hostName())
      .add("AgentNetworkInfoList", agentNetworkInfoList()).add("ConnectorId", connectorId()).add("Version", version())
      .add("Health", healthAsString()).add("LastHealthPingTime", lastHealthPingTime())
      .add("CollectionStatus", collectionStatus()).add("AgentType", agentType())
      .add("RegisteredTime", registeredTime()).build();
}
origin: software.amazon.awssdk/discovery

public AgentInfo unmarshall(JsonUnmarshallerContext context) throws Exception {
  AgentInfo.Builder agentInfoBuilder = AgentInfo.builder();
origin: software.amazon.awssdk/applicationdiscovery

@Override
public AgentInfo build() {
  return new AgentInfo(this);
}
origin: aws/aws-sdk-java-v2

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(agentId());
  hashCode = 31 * hashCode + Objects.hashCode(hostName());
  hashCode = 31 * hashCode + Objects.hashCode(agentNetworkInfoList());
  hashCode = 31 * hashCode + Objects.hashCode(connectorId());
  hashCode = 31 * hashCode + Objects.hashCode(version());
  hashCode = 31 * hashCode + Objects.hashCode(healthAsString());
  hashCode = 31 * hashCode + Objects.hashCode(lastHealthPingTime());
  hashCode = 31 * hashCode + Objects.hashCode(collectionStatus());
  hashCode = 31 * hashCode + Objects.hashCode(agentType());
  hashCode = 31 * hashCode + Objects.hashCode(registeredTime());
  return hashCode;
}
origin: software.amazon.awssdk/discovery

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof AgentInfo)) {
    return false;
  }
  AgentInfo other = (AgentInfo) obj;
  return Objects.equals(agentId(), other.agentId()) && Objects.equals(hostName(), other.hostName())
      && Objects.equals(agentNetworkInfoList(), other.agentNetworkInfoList())
      && Objects.equals(connectorId(), other.connectorId()) && Objects.equals(version(), other.version())
      && Objects.equals(healthAsString(), other.healthAsString())
      && Objects.equals(lastHealthPingTime(), other.lastHealthPingTime())
      && Objects.equals(collectionStatus(), other.collectionStatus()) && Objects.equals(agentType(), other.agentType())
      && Objects.equals(registeredTime(), other.registeredTime());
}
origin: aws/aws-sdk-java-v2

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof AgentInfo)) {
    return false;
  }
  AgentInfo other = (AgentInfo) obj;
  return Objects.equals(agentId(), other.agentId()) && Objects.equals(hostName(), other.hostName())
      && Objects.equals(agentNetworkInfoList(), other.agentNetworkInfoList())
      && Objects.equals(connectorId(), other.connectorId()) && Objects.equals(version(), other.version())
      && Objects.equals(healthAsString(), other.healthAsString())
      && Objects.equals(lastHealthPingTime(), other.lastHealthPingTime())
      && Objects.equals(collectionStatus(), other.collectionStatus()) && Objects.equals(agentType(), other.agentType())
      && Objects.equals(registeredTime(), other.registeredTime());
}
origin: software.amazon.awssdk/discovery

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(agentId());
  hashCode = 31 * hashCode + Objects.hashCode(hostName());
  hashCode = 31 * hashCode + Objects.hashCode(agentNetworkInfoList());
  hashCode = 31 * hashCode + Objects.hashCode(connectorId());
  hashCode = 31 * hashCode + Objects.hashCode(version());
  hashCode = 31 * hashCode + Objects.hashCode(healthAsString());
  hashCode = 31 * hashCode + Objects.hashCode(lastHealthPingTime());
  hashCode = 31 * hashCode + Objects.hashCode(collectionStatus());
  hashCode = 31 * hashCode + Objects.hashCode(agentType());
  hashCode = 31 * hashCode + Objects.hashCode(registeredTime());
  return hashCode;
}
origin: software.amazon.awssdk/applicationdiscovery

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(agentId());
  hashCode = 31 * hashCode + Objects.hashCode(hostName());
  hashCode = 31 * hashCode + Objects.hashCode(agentNetworkInfoList());
  hashCode = 31 * hashCode + Objects.hashCode(connectorId());
  hashCode = 31 * hashCode + Objects.hashCode(version());
  hashCode = 31 * hashCode + Objects.hashCode(healthAsString());
  hashCode = 31 * hashCode + Objects.hashCode(lastHealthPingTime());
  hashCode = 31 * hashCode + Objects.hashCode(collectionStatus());
  hashCode = 31 * hashCode + Objects.hashCode(agentType());
  hashCode = 31 * hashCode + Objects.hashCode(registeredTime());
  return hashCode;
}
origin: software.amazon.awssdk/applicationdiscovery

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof AgentInfo)) {
    return false;
  }
  AgentInfo other = (AgentInfo) obj;
  return Objects.equals(agentId(), other.agentId()) && Objects.equals(hostName(), other.hostName())
      && Objects.equals(agentNetworkInfoList(), other.agentNetworkInfoList())
      && Objects.equals(connectorId(), other.connectorId()) && Objects.equals(version(), other.version())
      && Objects.equals(healthAsString(), other.healthAsString())
      && Objects.equals(lastHealthPingTime(), other.lastHealthPingTime())
      && Objects.equals(collectionStatus(), other.collectionStatus()) && Objects.equals(agentType(), other.agentType())
      && Objects.equals(registeredTime(), other.registeredTime());
}
origin: aws/aws-sdk-java-v2

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "agentId":
    return Optional.ofNullable(clazz.cast(agentId()));
  case "hostName":
    return Optional.ofNullable(clazz.cast(hostName()));
  case "agentNetworkInfoList":
    return Optional.ofNullable(clazz.cast(agentNetworkInfoList()));
  case "connectorId":
    return Optional.ofNullable(clazz.cast(connectorId()));
  case "version":
    return Optional.ofNullable(clazz.cast(version()));
  case "health":
    return Optional.ofNullable(clazz.cast(healthAsString()));
  case "lastHealthPingTime":
    return Optional.ofNullable(clazz.cast(lastHealthPingTime()));
  case "collectionStatus":
    return Optional.ofNullable(clazz.cast(collectionStatus()));
  case "agentType":
    return Optional.ofNullable(clazz.cast(agentType()));
  case "registeredTime":
    return Optional.ofNullable(clazz.cast(registeredTime()));
  default:
    return Optional.empty();
  }
}
origin: software.amazon.awssdk/discovery

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "agentId":
    return Optional.ofNullable(clazz.cast(agentId()));
  case "hostName":
    return Optional.ofNullable(clazz.cast(hostName()));
  case "agentNetworkInfoList":
    return Optional.ofNullable(clazz.cast(agentNetworkInfoList()));
  case "connectorId":
    return Optional.ofNullable(clazz.cast(connectorId()));
  case "version":
    return Optional.ofNullable(clazz.cast(version()));
  case "health":
    return Optional.ofNullable(clazz.cast(healthAsString()));
  case "lastHealthPingTime":
    return Optional.ofNullable(clazz.cast(lastHealthPingTime()));
  case "collectionStatus":
    return Optional.ofNullable(clazz.cast(collectionStatus()));
  case "agentType":
    return Optional.ofNullable(clazz.cast(agentType()));
  case "registeredTime":
    return Optional.ofNullable(clazz.cast(registeredTime()));
  default:
    return Optional.empty();
  }
}
origin: software.amazon.awssdk/applicationdiscovery

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "agentId":
    return Optional.ofNullable(clazz.cast(agentId()));
  case "hostName":
    return Optional.ofNullable(clazz.cast(hostName()));
  case "agentNetworkInfoList":
    return Optional.ofNullable(clazz.cast(agentNetworkInfoList()));
  case "connectorId":
    return Optional.ofNullable(clazz.cast(connectorId()));
  case "version":
    return Optional.ofNullable(clazz.cast(version()));
  case "health":
    return Optional.ofNullable(clazz.cast(healthAsString()));
  case "lastHealthPingTime":
    return Optional.ofNullable(clazz.cast(lastHealthPingTime()));
  case "collectionStatus":
    return Optional.ofNullable(clazz.cast(collectionStatus()));
  case "agentType":
    return Optional.ofNullable(clazz.cast(agentType()));
  case "registeredTime":
    return Optional.ofNullable(clazz.cast(registeredTime()));
  default:
    return Optional.empty();
  }
}
origin: software.amazon.awssdk/discovery

  /**
   * Marshall the given parameter object
   */
  public void marshall(AgentInfo agentInfo, ProtocolMarshaller protocolMarshaller) {
    Validate.paramNotNull(agentInfo, "agentInfo");
    Validate.paramNotNull(protocolMarshaller, "protocolMarshaller");
    try {
      protocolMarshaller.marshall(agentInfo.agentId(), AGENTID_BINDING);
      protocolMarshaller.marshall(agentInfo.hostName(), HOSTNAME_BINDING);
      protocolMarshaller.marshall(agentInfo.agentNetworkInfoList(), AGENTNETWORKINFOLIST_BINDING);
      protocolMarshaller.marshall(agentInfo.connectorId(), CONNECTORID_BINDING);
      protocolMarshaller.marshall(agentInfo.version(), VERSION_BINDING);
      protocolMarshaller.marshall(agentInfo.healthAsString(), HEALTH_BINDING);
      protocolMarshaller.marshall(agentInfo.lastHealthPingTime(), LASTHEALTHPINGTIME_BINDING);
      protocolMarshaller.marshall(agentInfo.collectionStatus(), COLLECTIONSTATUS_BINDING);
      protocolMarshaller.marshall(agentInfo.agentType(), AGENTTYPE_BINDING);
      protocolMarshaller.marshall(agentInfo.registeredTime(), REGISTEREDTIME_BINDING);
    } catch (Exception e) {
      throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
    }
  }
}
software.amazon.awssdk.services.applicationdiscovery.modelAgentInfo

Javadoc

Information about agents or connectors associated with the user’s AWS account. Information includes agent or connector IDs, IP addresses, media access control (MAC) addresses, agent or connector health, hostname where the agent or connector resides, and agent version for each agent.

Most used methods

  • <init>
  • agentId
    The agent or connector ID.
  • agentNetworkInfoList
    Network details about the host where the agent or connector resides. Attempts to modify the colle
  • agentType
    Type of agent.
  • builder
  • collectionStatus
    Status of the collection process for an agent or connector.
  • connectorId
    The ID of the connector.
  • healthAsString
    The health of the agent or connector. If the service returns an enum value that is not available
  • hostName
    The name of the host where the agent or connector resides. The host can be a server or virtual mach
  • lastHealthPingTime
    Time since agent or connector health was reported.
  • registeredTime
    Agent's first registration timestamp in UTC.
  • version
    The agent or connector version.
  • registeredTime,
  • version

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Permission (java.security)
    Legacy security code; do not use.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now