Show Table of Contents
2.4. リソースの属性の変更
以下の例では、リソースの属性を変更する方法について説明します。この例では、変更する属性は、「test」という名前の仮想マシンの説明で、これを「java_sdk」に変更します。
手順2.2 リソースの属性の変更
- 属性を変更するリソースのインスタンスを宣言します。
VM vm = api.getVMs().get("test"); - 新しい属性値を設定します。
vm.setDescription("java_sdk"); - 変更を適用する仮想マシンを更新します。
VM newVM = vm.update();

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.