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

com.pulumi.azurenative.awsconnector.outputs.AwsSsmInstanceInformationPropertiesResponse Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.awsconnector.outputs;

import com.pulumi.azurenative.awsconnector.outputs.InstanceAggregatedAssociationOverviewResponse;
import com.pulumi.azurenative.awsconnector.outputs.PingStatusEnumValueResponse;
import com.pulumi.azurenative.awsconnector.outputs.PlatformTypeEnumValueResponse;
import com.pulumi.azurenative.awsconnector.outputs.ResourceTypeEnumValueResponse;
import com.pulumi.azurenative.awsconnector.outputs.SourceTypeEnumValueResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AwsSsmInstanceInformationPropertiesResponse {
    /**
     * @return <p>The activation ID created by Amazon Web Services Systems Manager when the server or virtual machine (VM) was registered.</p>
     * 
     */
    private @Nullable String activationId;
    /**
     * @return <p>The version of SSM Agent running on your Linux managed node. </p>
     * 
     */
    private @Nullable String agentVersion;
    /**
     * @return <p>Information about the association.</p>
     * 
     */
    private @Nullable InstanceAggregatedAssociationOverviewResponse associationOverview;
    /**
     * @return <p>The status of the association.</p>
     * 
     */
    private @Nullable String associationStatus;
    /**
     * @return <p>The fully qualified host name of the managed node.</p>
     * 
     */
    private @Nullable String computerName;
    /**
     * @return <p>The Identity and Access Management (IAM) role assigned to the on-premises Systems Manager managed node. This call doesn't return the IAM role for Amazon Elastic Compute Cloud (Amazon EC2) instances. To retrieve the IAM role for an EC2 instance, use the Amazon EC2 <code>DescribeInstances</code> operation. For information, see <a href='https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html'>DescribeInstances</a> in the <i>Amazon EC2 API Reference</i> or <a href='https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html'>describe-instances</a> in the <i>Amazon Web Services CLI Command Reference</i>.</p>
     * 
     */
    private @Nullable String iamRole;
    /**
     * @return <p>The managed node ID. </p>
     * 
     */
    private @Nullable String instanceId;
    /**
     * @return <p>The IP address of the managed node.</p>
     * 
     */
    private @Nullable String ipAddress;
    /**
     * @return <p>Indicates whether the latest version of SSM Agent is running on your Linux managed node. This field doesn't indicate whether or not the latest version is installed on Windows managed nodes, because some older versions of Windows Server use the EC2Config service to process Systems Manager requests.</p>
     * 
     */
    private @Nullable Boolean isLatestVersion;
    /**
     * @return <p>The date the association was last run.</p>
     * 
     */
    private @Nullable String lastAssociationExecutionDate;
    /**
     * @return <p>The date and time when the agent last pinged the Systems Manager service. </p>
     * 
     */
    private @Nullable String lastPingDateTime;
    /**
     * @return <p>The last date the association was successfully run.</p>
     * 
     */
    private @Nullable String lastSuccessfulAssociationExecutionDate;
    /**
     * @return <p>The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the <code>DefaultInstanceName</code> property using the <a>CreateActivation</a> command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in <a href='https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-linux.html'>Install SSM Agent for a hybrid and multicloud environment (Linux)</a> and <a href='https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-win.html'>Install SSM Agent for a hybrid and multicloud environment (Windows)</a>. To retrieve the <code>Name</code> tag of an EC2 instance, use the Amazon EC2 <code>DescribeInstances</code> operation. For information, see <a href='https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html'>DescribeInstances</a> in the <i>Amazon EC2 API Reference</i> or <a href='https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html'>describe-instances</a> in the <i>Amazon Web Services CLI Command Reference</i>.</p>
     * 
     */
    private @Nullable String name;
    /**
     * @return <p>Connection status of SSM Agent. </p> <note> <p>The status <code>Inactive</code> has been deprecated and is no longer in use.</p> </note>
     * 
     */
    private @Nullable PingStatusEnumValueResponse pingStatus;
    /**
     * @return <p>The name of the operating system platform running on your managed node. </p>
     * 
     */
    private @Nullable String platformName;
    /**
     * @return <p>The operating system platform type. </p>
     * 
     */
    private @Nullable PlatformTypeEnumValueResponse platformType;
    /**
     * @return <p>The version of the OS platform running on your managed node. </p>
     * 
     */
    private @Nullable String platformVersion;
    /**
     * @return <p>The date the server or VM was registered with Amazon Web Services as a managed node.</p>
     * 
     */
    private @Nullable String registrationDate;
    /**
     * @return <p>The type of instance. Instances are either EC2 instances or managed instances. </p>
     * 
     */
    private @Nullable ResourceTypeEnumValueResponse resourceType;
    /**
     * @return <p>The ID of the source resource. For IoT Greengrass devices, <code>SourceId</code> is the Thing name. </p>
     * 
     */
    private @Nullable String sourceId;
    /**
     * @return <p>The type of the source resource. For IoT Greengrass devices, <code>SourceType</code> is <code>AWS::IoT::Thing</code>. </p>
     * 
     */
    private @Nullable SourceTypeEnumValueResponse sourceType;

    private AwsSsmInstanceInformationPropertiesResponse() {}
    /**
     * @return <p>The activation ID created by Amazon Web Services Systems Manager when the server or virtual machine (VM) was registered.</p>
     * 
     */
    public Optional activationId() {
        return Optional.ofNullable(this.activationId);
    }
    /**
     * @return <p>The version of SSM Agent running on your Linux managed node. </p>
     * 
     */
    public Optional agentVersion() {
        return Optional.ofNullable(this.agentVersion);
    }
    /**
     * @return <p>Information about the association.</p>
     * 
     */
    public Optional associationOverview() {
        return Optional.ofNullable(this.associationOverview);
    }
    /**
     * @return <p>The status of the association.</p>
     * 
     */
    public Optional associationStatus() {
        return Optional.ofNullable(this.associationStatus);
    }
    /**
     * @return <p>The fully qualified host name of the managed node.</p>
     * 
     */
    public Optional computerName() {
        return Optional.ofNullable(this.computerName);
    }
    /**
     * @return <p>The Identity and Access Management (IAM) role assigned to the on-premises Systems Manager managed node. This call doesn't return the IAM role for Amazon Elastic Compute Cloud (Amazon EC2) instances. To retrieve the IAM role for an EC2 instance, use the Amazon EC2 <code>DescribeInstances</code> operation. For information, see <a href='https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html'>DescribeInstances</a> in the <i>Amazon EC2 API Reference</i> or <a href='https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html'>describe-instances</a> in the <i>Amazon Web Services CLI Command Reference</i>.</p>
     * 
     */
    public Optional iamRole() {
        return Optional.ofNullable(this.iamRole);
    }
    /**
     * @return <p>The managed node ID. </p>
     * 
     */
    public Optional instanceId() {
        return Optional.ofNullable(this.instanceId);
    }
    /**
     * @return <p>The IP address of the managed node.</p>
     * 
     */
    public Optional ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }
    /**
     * @return <p>Indicates whether the latest version of SSM Agent is running on your Linux managed node. This field doesn't indicate whether or not the latest version is installed on Windows managed nodes, because some older versions of Windows Server use the EC2Config service to process Systems Manager requests.</p>
     * 
     */
    public Optional isLatestVersion() {
        return Optional.ofNullable(this.isLatestVersion);
    }
    /**
     * @return <p>The date the association was last run.</p>
     * 
     */
    public Optional lastAssociationExecutionDate() {
        return Optional.ofNullable(this.lastAssociationExecutionDate);
    }
    /**
     * @return <p>The date and time when the agent last pinged the Systems Manager service. </p>
     * 
     */
    public Optional lastPingDateTime() {
        return Optional.ofNullable(this.lastPingDateTime);
    }
    /**
     * @return <p>The last date the association was successfully run.</p>
     * 
     */
    public Optional lastSuccessfulAssociationExecutionDate() {
        return Optional.ofNullable(this.lastSuccessfulAssociationExecutionDate);
    }
    /**
     * @return <p>The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the <code>DefaultInstanceName</code> property using the <a>CreateActivation</a> command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in <a href='https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-linux.html'>Install SSM Agent for a hybrid and multicloud environment (Linux)</a> and <a href='https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-win.html'>Install SSM Agent for a hybrid and multicloud environment (Windows)</a>. To retrieve the <code>Name</code> tag of an EC2 instance, use the Amazon EC2 <code>DescribeInstances</code> operation. For information, see <a href='https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html'>DescribeInstances</a> in the <i>Amazon EC2 API Reference</i> or <a href='https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html'>describe-instances</a> in the <i>Amazon Web Services CLI Command Reference</i>.</p>
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return <p>Connection status of SSM Agent. </p> <note> <p>The status <code>Inactive</code> has been deprecated and is no longer in use.</p> </note>
     * 
     */
    public Optional pingStatus() {
        return Optional.ofNullable(this.pingStatus);
    }
    /**
     * @return <p>The name of the operating system platform running on your managed node. </p>
     * 
     */
    public Optional platformName() {
        return Optional.ofNullable(this.platformName);
    }
    /**
     * @return <p>The operating system platform type. </p>
     * 
     */
    public Optional platformType() {
        return Optional.ofNullable(this.platformType);
    }
    /**
     * @return <p>The version of the OS platform running on your managed node. </p>
     * 
     */
    public Optional platformVersion() {
        return Optional.ofNullable(this.platformVersion);
    }
    /**
     * @return <p>The date the server or VM was registered with Amazon Web Services as a managed node.</p>
     * 
     */
    public Optional registrationDate() {
        return Optional.ofNullable(this.registrationDate);
    }
    /**
     * @return <p>The type of instance. Instances are either EC2 instances or managed instances. </p>
     * 
     */
    public Optional resourceType() {
        return Optional.ofNullable(this.resourceType);
    }
    /**
     * @return <p>The ID of the source resource. For IoT Greengrass devices, <code>SourceId</code> is the Thing name. </p>
     * 
     */
    public Optional sourceId() {
        return Optional.ofNullable(this.sourceId);
    }
    /**
     * @return <p>The type of the source resource. For IoT Greengrass devices, <code>SourceType</code> is <code>AWS::IoT::Thing</code>. </p>
     * 
     */
    public Optional sourceType() {
        return Optional.ofNullable(this.sourceType);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AwsSsmInstanceInformationPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String activationId;
        private @Nullable String agentVersion;
        private @Nullable InstanceAggregatedAssociationOverviewResponse associationOverview;
        private @Nullable String associationStatus;
        private @Nullable String computerName;
        private @Nullable String iamRole;
        private @Nullable String instanceId;
        private @Nullable String ipAddress;
        private @Nullable Boolean isLatestVersion;
        private @Nullable String lastAssociationExecutionDate;
        private @Nullable String lastPingDateTime;
        private @Nullable String lastSuccessfulAssociationExecutionDate;
        private @Nullable String name;
        private @Nullable PingStatusEnumValueResponse pingStatus;
        private @Nullable String platformName;
        private @Nullable PlatformTypeEnumValueResponse platformType;
        private @Nullable String platformVersion;
        private @Nullable String registrationDate;
        private @Nullable ResourceTypeEnumValueResponse resourceType;
        private @Nullable String sourceId;
        private @Nullable SourceTypeEnumValueResponse sourceType;
        public Builder() {}
        public Builder(AwsSsmInstanceInformationPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.activationId = defaults.activationId;
    	      this.agentVersion = defaults.agentVersion;
    	      this.associationOverview = defaults.associationOverview;
    	      this.associationStatus = defaults.associationStatus;
    	      this.computerName = defaults.computerName;
    	      this.iamRole = defaults.iamRole;
    	      this.instanceId = defaults.instanceId;
    	      this.ipAddress = defaults.ipAddress;
    	      this.isLatestVersion = defaults.isLatestVersion;
    	      this.lastAssociationExecutionDate = defaults.lastAssociationExecutionDate;
    	      this.lastPingDateTime = defaults.lastPingDateTime;
    	      this.lastSuccessfulAssociationExecutionDate = defaults.lastSuccessfulAssociationExecutionDate;
    	      this.name = defaults.name;
    	      this.pingStatus = defaults.pingStatus;
    	      this.platformName = defaults.platformName;
    	      this.platformType = defaults.platformType;
    	      this.platformVersion = defaults.platformVersion;
    	      this.registrationDate = defaults.registrationDate;
    	      this.resourceType = defaults.resourceType;
    	      this.sourceId = defaults.sourceId;
    	      this.sourceType = defaults.sourceType;
        }

        @CustomType.Setter
        public Builder activationId(@Nullable String activationId) {

            this.activationId = activationId;
            return this;
        }
        @CustomType.Setter
        public Builder agentVersion(@Nullable String agentVersion) {

            this.agentVersion = agentVersion;
            return this;
        }
        @CustomType.Setter
        public Builder associationOverview(@Nullable InstanceAggregatedAssociationOverviewResponse associationOverview) {

            this.associationOverview = associationOverview;
            return this;
        }
        @CustomType.Setter
        public Builder associationStatus(@Nullable String associationStatus) {

            this.associationStatus = associationStatus;
            return this;
        }
        @CustomType.Setter
        public Builder computerName(@Nullable String computerName) {

            this.computerName = computerName;
            return this;
        }
        @CustomType.Setter
        public Builder iamRole(@Nullable String iamRole) {

            this.iamRole = iamRole;
            return this;
        }
        @CustomType.Setter
        public Builder instanceId(@Nullable String instanceId) {

            this.instanceId = instanceId;
            return this;
        }
        @CustomType.Setter
        public Builder ipAddress(@Nullable String ipAddress) {

            this.ipAddress = ipAddress;
            return this;
        }
        @CustomType.Setter
        public Builder isLatestVersion(@Nullable Boolean isLatestVersion) {

            this.isLatestVersion = isLatestVersion;
            return this;
        }
        @CustomType.Setter
        public Builder lastAssociationExecutionDate(@Nullable String lastAssociationExecutionDate) {

            this.lastAssociationExecutionDate = lastAssociationExecutionDate;
            return this;
        }
        @CustomType.Setter
        public Builder lastPingDateTime(@Nullable String lastPingDateTime) {

            this.lastPingDateTime = lastPingDateTime;
            return this;
        }
        @CustomType.Setter
        public Builder lastSuccessfulAssociationExecutionDate(@Nullable String lastSuccessfulAssociationExecutionDate) {

            this.lastSuccessfulAssociationExecutionDate = lastSuccessfulAssociationExecutionDate;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder pingStatus(@Nullable PingStatusEnumValueResponse pingStatus) {

            this.pingStatus = pingStatus;
            return this;
        }
        @CustomType.Setter
        public Builder platformName(@Nullable String platformName) {

            this.platformName = platformName;
            return this;
        }
        @CustomType.Setter
        public Builder platformType(@Nullable PlatformTypeEnumValueResponse platformType) {

            this.platformType = platformType;
            return this;
        }
        @CustomType.Setter
        public Builder platformVersion(@Nullable String platformVersion) {

            this.platformVersion = platformVersion;
            return this;
        }
        @CustomType.Setter
        public Builder registrationDate(@Nullable String registrationDate) {

            this.registrationDate = registrationDate;
            return this;
        }
        @CustomType.Setter
        public Builder resourceType(@Nullable ResourceTypeEnumValueResponse resourceType) {

            this.resourceType = resourceType;
            return this;
        }
        @CustomType.Setter
        public Builder sourceId(@Nullable String sourceId) {

            this.sourceId = sourceId;
            return this;
        }
        @CustomType.Setter
        public Builder sourceType(@Nullable SourceTypeEnumValueResponse sourceType) {

            this.sourceType = sourceType;
            return this;
        }
        public AwsSsmInstanceInformationPropertiesResponse build() {
            final var _resultValue = new AwsSsmInstanceInformationPropertiesResponse();
            _resultValue.activationId = activationId;
            _resultValue.agentVersion = agentVersion;
            _resultValue.associationOverview = associationOverview;
            _resultValue.associationStatus = associationStatus;
            _resultValue.computerName = computerName;
            _resultValue.iamRole = iamRole;
            _resultValue.instanceId = instanceId;
            _resultValue.ipAddress = ipAddress;
            _resultValue.isLatestVersion = isLatestVersion;
            _resultValue.lastAssociationExecutionDate = lastAssociationExecutionDate;
            _resultValue.lastPingDateTime = lastPingDateTime;
            _resultValue.lastSuccessfulAssociationExecutionDate = lastSuccessfulAssociationExecutionDate;
            _resultValue.name = name;
            _resultValue.pingStatus = pingStatus;
            _resultValue.platformName = platformName;
            _resultValue.platformType = platformType;
            _resultValue.platformVersion = platformVersion;
            _resultValue.registrationDate = registrationDate;
            _resultValue.resourceType = resourceType;
            _resultValue.sourceId = sourceId;
            _resultValue.sourceType = sourceType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy