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

software.amazon.awssdk.services.applicationdiscovery.model.StartDataCollectionByAgentIdsResponse Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Application Discovery Service module holds the client classes that are used for communicating with AWS Application Discovery Service.

There is a newer version: 2.0.0-preview-11
Show newest version
/*
 * Copyright 2013-2018 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 software.amazon.awssdk.services.applicationdiscovery.model;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.annotation.Generated;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 */
@Generated("software.amazon.awssdk:codegen")
public class StartDataCollectionByAgentIdsResponse extends ApplicationDiscoveryResponse implements
        ToCopyableBuilder {
    private final List agentsConfigurationStatus;

    private StartDataCollectionByAgentIdsResponse(BuilderImpl builder) {
        super(builder);
        this.agentsConfigurationStatus = builder.agentsConfigurationStatus;
    }

    /**
     * 

* Information about agents or the connector that were instructed to start collecting data. Information includes the * agent/connector ID, a description of the operation performed, and whether the agent/connector configuration was * updated. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

* * @return Information about agents or the connector that were instructed to start collecting data. Information * includes the agent/connector ID, a description of the operation performed, and whether the * agent/connector configuration was updated. */ public List agentsConfigurationStatus() { return agentsConfigurationStatus; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(agentsConfigurationStatus()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof StartDataCollectionByAgentIdsResponse)) { return false; } StartDataCollectionByAgentIdsResponse other = (StartDataCollectionByAgentIdsResponse) obj; return Objects.equals(agentsConfigurationStatus(), other.agentsConfigurationStatus()); } @Override public String toString() { return ToString.builder("StartDataCollectionByAgentIdsResponse") .add("AgentsConfigurationStatus", agentsConfigurationStatus()).build(); } public Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "agentsConfigurationStatus": return Optional.of(clazz.cast(agentsConfigurationStatus())); default: return Optional.empty(); } } public interface Builder extends ApplicationDiscoveryResponse.Builder, CopyableBuilder { /** *

* Information about agents or the connector that were instructed to start collecting data. Information includes * the agent/connector ID, a description of the operation performed, and whether the agent/connector * configuration was updated. *

* * @param agentsConfigurationStatus * Information about agents or the connector that were instructed to start collecting data. Information * includes the agent/connector ID, a description of the operation performed, and whether the * agent/connector configuration was updated. * @return Returns a reference to this object so that method calls can be chained together. */ Builder agentsConfigurationStatus(Collection agentsConfigurationStatus); /** *

* Information about agents or the connector that were instructed to start collecting data. Information includes * the agent/connector ID, a description of the operation performed, and whether the agent/connector * configuration was updated. *

* * @param agentsConfigurationStatus * Information about agents or the connector that were instructed to start collecting data. Information * includes the agent/connector ID, a description of the operation performed, and whether the * agent/connector configuration was updated. * @return Returns a reference to this object so that method calls can be chained together. */ Builder agentsConfigurationStatus(AgentConfigurationStatus... agentsConfigurationStatus); } static final class BuilderImpl extends ApplicationDiscoveryResponse.BuilderImpl implements Builder { private List agentsConfigurationStatus; private BuilderImpl() { } private BuilderImpl(StartDataCollectionByAgentIdsResponse model) { agentsConfigurationStatus(model.agentsConfigurationStatus); } public final Collection getAgentsConfigurationStatus() { return agentsConfigurationStatus != null ? agentsConfigurationStatus.stream() .map(AgentConfigurationStatus::toBuilder).collect(Collectors.toList()) : null; } @Override public final Builder agentsConfigurationStatus(Collection agentsConfigurationStatus) { this.agentsConfigurationStatus = AgentConfigurationStatusListCopier.copy(agentsConfigurationStatus); return this; } @Override @SafeVarargs public final Builder agentsConfigurationStatus(AgentConfigurationStatus... agentsConfigurationStatus) { agentsConfigurationStatus(Arrays.asList(agentsConfigurationStatus)); return this; } public final void setAgentsConfigurationStatus(Collection agentsConfigurationStatus) { this.agentsConfigurationStatus = AgentConfigurationStatusListCopier.copyFromBuilder(agentsConfigurationStatus); } @Override public StartDataCollectionByAgentIdsResponse build() { return new StartDataCollectionByAgentIdsResponse(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy