public LifecyclePolicyRuleAction withType(ImageActionType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of action to be taken.
</p>

@param type
       The type of action to be taken.
@return Returns a reference to this object so that method calls can be chained together.
@see ImageActionType
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/LifecyclePolicyRuleAction.java