@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getArn() != null)
            sb.append("Arn: ").append(getArn()).append(",");
        if (getStackId() != null)
            sb.append("StackId: ").append(getStackId()).append(",");
        if (getLayerId() != null)
            sb.append("LayerId: ").append(getLayerId()).append(",");
        if (getType() != null)
            sb.append("Type: ").append(getType()).append(",");
        if (getName() != null)
            sb.append("Name: ").append(getName()).append(",");
        if (getShortname() != null)
            sb.append("Shortname: ").append(getShortname()).append(",");
        if (getAttributes() != null)
            sb.append("Attributes: ").append(getAttributes()).append(",");
        if (getCloudWatchLogsConfiguration() != null)
            sb.append("CloudWatchLogsConfiguration: ").append(getCloudWatchLogsConfiguration()).append(",");
        if (getCustomInstanceProfileArn() != null)
            sb.append("CustomInstanceProfileArn: ").append(getCustomInstanceProfileArn()).append(",");
        if (getCustomJson() != null)
            sb.append("CustomJson: ").append(getCustomJson()).append(",");
        if (getCustomSecurityGroupIds() != null)
            sb.append("CustomSecurityGroupIds: ").append(getCustomSecurityGroupIds()).append(",");
        if (getDefaultSecurityGroupNames() != null)
            sb.append("DefaultSecurityGroupNames: ").append(getDefaultSecurityGroupNames()).append(",");
        if (getPackages() != null)
            sb.append("Packages: ").append(getPackages()).append(",");
        if (getVolumeConfigurations() != null)
            sb.append("VolumeConfigurations: ").append(getVolumeConfigurations()).append(",");
        if (getEnableAutoHealing() != null)
            sb.append("EnableAutoHealing: ").append(getEnableAutoHealing()).append(",");
        if (getAutoAssignElasticIps() != null)
            sb.append("AutoAssignElasticIps: ").append(getAutoAssignElasticIps()).append(",");
        if (getAutoAssignPublicIps() != null)
            sb.append("AutoAssignPublicIps: ").append(getAutoAssignPublicIps()).append(",");
        if (getDefaultRecipes() != null)
            sb.append("DefaultRecipes: ").append(getDefaultRecipes()).append(",");
        if (getCustomRecipes() != null)
            sb.append("CustomRecipes: ").append(getCustomRecipes()).append(",");
        if (getCreatedAt() != null)
            sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
        if (getInstallUpdatesOnBoot() != null)
            sb.append("InstallUpdatesOnBoot: ").append(getInstallUpdatesOnBoot()).append(",");
        if (getUseEbsOptimizedInstances() != null)
            sb.append("UseEbsOptimizedInstances: ").append(getUseEbsOptimizedInstances()).append(",");
        if (getLifecycleEventConfiguration() != null)
            sb.append("LifecycleEventConfiguration: ").append(getLifecycleEventConfiguration());
        sb.append("}");
        return sb.toString();
    }
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()
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Layer.java